[
  {
    "path": ".fvmrc",
    "content": "{\n  \"flutter\": \"3.22.1\",\n  \"flavors\": {}\n}"
  },
  {
    "path": ".github/workflows/run_test.yaml",
    "content": "name: run-flutter-test\non: [push]\njobs:\n  flutter-test:\n    runs-on: ubuntu-latest\n    steps: \n      - name: Checkout repository\n        uses: actions/checkout@v4\n\n      - name: Setup Flutter \n        uses: subosito/flutter-action@v2\n\n      - name: Install depencencies \n        run: flutter pub get\n\n      - name: Run tests and generate coverage\n        run: flutter test --no-pub --coverage\n        \n      - name: Install lcov\n        run: sudo apt-get -y install lcov\n\n      - name: Convert lcov.info to HTML\n        run: genhtml coverage/lcov.info -o coverage/html\n\n      - name: Upload coverage directory\n        uses: actions/upload-artifact@v4\n        with:\n          path: coverage\n"
  },
  {
    "path": ".gitignore",
    "content": "# Miscellaneous\n*.class\n*.log\n*.pyc\n*.swp\n.DS_Store\n.atom/\n.buildlog/\n.history\n.svn/\n\n# IntelliJ related\n*.iml\n*.ipr\n*.iws\n.idea/\n\n# The .vscode folder contains launch configuration and tasks you configure in\n# VS Code which you may wish to be included in version control, so this line\n# is commented out by default.\n#.vscode/\n\n# Flutter/Dart/Pub related\n**/doc/api/\n.dart_tool/\n.flutter-plugins\n.flutter-plugins-dependencies\n.packages\n.pub-cache/\n.pub/\nbuild/\n\n# Android related\n**/android/**/gradle-wrapper.jar\n**/android/.gradle\n**/android/captures/\n**/android/gradlew\n**/android/gradlew.bat\n**/android/local.properties\n**/android/**/GeneratedPluginRegistrant.java\n\n# iOS/XCode related\n**/ios/**/*.mode1v3\n**/ios/**/*.mode2v3\n**/ios/**/*.moved-aside\n**/ios/**/*.pbxuser\n**/ios/**/*.perspectivev3\n**/ios/**/*sync/\n**/ios/**/.sconsign.dblite\n**/ios/**/.tags*\n**/ios/**/.vagrant/\n**/ios/**/DerivedData/\n**/ios/**/Icon?\n**/ios/**/Pods/\n**/ios/**/.symlinks/\n**/ios/**/profile\n**/ios/**/xcuserdata\n**/ios/.generated/\n**/ios/Flutter/App.framework\n**/ios/Flutter/Flutter.framework\n**/ios/Flutter/Flutter.podspec\n**/ios/Flutter/Generated.xcconfig\n**/ios/Flutter/app.flx\n**/ios/Flutter/app.zip\n**/ios/Flutter/flutter_assets/\n**/ios/Flutter/flutter_export_environment.sh\n**/ios/ServiceDefinitions.json\n**/ios/Runner/GeneratedPluginRegistrant.*\n\n# Exceptions to above rules.\n!**/ios/**/default.mode1v3\n!**/ios/**/default.mode2v3\n!**/ios/**/default.pbxuser\n!**/ios/**/default.perspectivev3\n\n# FVM Version Cache\n.fvm/"
  },
  {
    "path": ".metadata",
    "content": "# This file tracks properties of this Flutter project.\n# Used by Flutter tool to assess capabilities and perform upgrades etc.\n#\n# This file should be version controlled and should not be manually edited.\n\nversion:\n  revision: 60bd88df915880d23877bfc1602e8ddcf4c4dd2a\n  channel: stable\n\nproject_type: package\n"
  },
  {
    "path": ".vscode/settings.json",
    "content": "{\n  \"dart.flutterSdkPath\": \".fvm/versions/3.22.1\"\n}"
  },
  {
    "path": "CHANGELOG.md",
    "content": "## [2.0.0] - 2024.12.13\n### Breaking Changes\nThis major update includes some breaking changes. See [migration guide](https://github.com/chooyan-eng/crop_your_image/issues/176) for more details.\n\n### Interface Enhancements\n* Change the argument type exposed by `onCropped` callback into `CropResult` from `Uint8List`. This allows to handle errors as well as cropped image data. Thank you [@justprodev](https://github.com/justprodev) for your idea at [#145](https://github.com/chooyan-eng/crop_your_image/issues/145)!\n* Change how to implement `ImageCropper` to make it more flexibly customizable.\n* `onMoved` callback passes additional `imageRect` parameter.\n* Errors are now implementing `Exception` instead of `Error`.\n* Change the type of `initialRectBuilder` to `InitialRectBuilder`, and now legacy `initialArea` and `initialSize` are removed and merged into `InitialRectBuilder` to avoid confusion.\n\n### New Features\n* Add undo / redo related features. See [README.md](README.md) for more details.\n* Respect original image format and output with the same format. Thank you [@komakur](https://github.com/komakur) for your idea and sample code at [#48](https://github.com/chooyan-eng/crop_your_image/issues/48)!\n* Add `filterQuality` argument to `Crop` widget. Thank you [@abichinger](https://github.com/abichinger) for your discussion and contribution at [#108](https://github.com/chooyan-eng/crop_your_image/pull/108)!\n* Add `onImageMoved` callback that notifies image moved when `interactive` is enabled. Thank you [@yujune](https://github.com/yujune) and [@eidolonFIRE](https://github.com/eidolonFIRE) for your contribution at [#159](https://github.com/chooyan-eng/crop_your_image/pull/159)! and [#92](https://github.com/chooyan-eng/crop_your_image/pull/92)!\n* Add `overlayBuilder` argument to `Crop` widget that enables to configure overlay on cropping area. Thank you [@abichinger](https://github.com/abichinger) for your contribution at [#107](https://github.com/chooyan-eng/crop_your_image/pull/107)!\n\n### Bug Fixes\n* Fix a bug of circle crop not working with JPEG images.\n* Fix a bug of `InvalidRectError` happening unexpectedly. Thank you [@feimenggo](https://github.com/feimenggo) and [@Lenkomotive](https://github.com/Lenkomotive) for your fixes at [#163](https://github.com/chooyan-eng/crop_your_image/pull/163)! and [#153](https://github.com/chooyan-eng/crop_your_image/pull/153)!\n* Fix a bug of using unmounted context.\n* Fix a bug of crashing after disposing `Crop` widget.\n\nBig appreciation to all the contributors joining discussions and sending PRs!\n\n## [1.1.0] - 2024.5.29\n* apply changes of latest version of `image` package\n\n## [1.0.2] - 2024.2.26\n* fix bug of causing `InvalidRectError` unexpectedly\n\n## [1.0.1] - 2024.2.11\n* fix bug of `withCircleUi` not working\n\n## [1.0.0] - 2024.2.11\n* `crop_your_image` is now stable!\n* well architectured and tested\n* works also on Web / Desktop \n* backend logic is also interchangeable\n* some breaking changes. see [migration guide](https://github.com/chooyan-eng/crop_your_image/issues/133).\n\n## [1.0.0-dev.4] - 2024.2.10\n* `interactive` is now available for macOS! \n* fix a tiny bug\n\n## [1.0.0-dev.3] - 2024.2.10\n* Rename some arguments of `Crop` and setter of `CropController`. See [migration guide](https://github.com/chooyan-eng/crop_your_image/issues/133).\n* `interactive` is now available for Web!\n\n## [1.0.0-dev.2] - 2024.2.9\n* Add test codes and fix some bugs.\n* Update README.md\n* Add `clipBehavior`.\n* Rename `allowScale` to `willUpdateScale`.\n\n## [1.0.0-dev.1] - 2024.2.8\n* Refactor and update the architecture of the entire codebase.\n* Add injecting backend logic features.\n* Add `allowScale` flag.\n\n## [0.7.5] - 2023.6.5\n* Update Fluter version to 3.10.3\n\n## [0.7.4] - 2023.1.10\n* Update versions of depencencies.\n\n## [0.7.3] - 2022.11.15\n* Add `progressIndicator` parameter to pass a Widget indicating progress.\n* Updated versions of dependencies.\n\n## [0.7.2] - 2022.03.16\n* Enhanced zooming / panning behavior\n\n## [0.7.1] - 2022.03.13\n* Add `initialAreaBuilder` parameter to configure inital cropping area based on viewport of `Crop`.\n* Add `radius` parameter to configure corner radius of cropping area.\n* Control image scale not to be smaller than cropping area.\n* Calculate initial scale to cover cropping area.\n* Fix bug image could't be bigger than certain scale.\n\n## [0.7.0] - 2022.03.08\n* Add _experimental_ feature of moving and zooming images.\n  * setting `interactive: true` enables the feature.\n* Add `fixArea` flag to fix cropping area. \n\n## [0.6.0+1] - 2021.08.14\n* Fix static analysis issues.\n\n## [0.6.0] - 2021.08.14\n* _Braking Change:_ The second argument of `cornerDotBuilder` is now enum of `EdgeAlignment`, not meaningful index.\n* Add callback for `CropStatus`.\n* Enhancement of not to block UI when loading image data.\n\n## [0.5.3] - 2021.03.28\n* Fix a bug that calcuration of cropping area is wrong when Exif has orientation data.\n\n## [0.5.2+2] - 2021.03.28\n* Update Readme\n\n## [0.5.2+1] - 2021.03.28\n* Fix problems of static analysis.\n* Update Readme\n\n## [0.5.2] - 2021.03.28\n* Update Readme\n* Remove unused code\n\n## [0.5.1+1] - 2021.03.25\n* Enable to set initial cropping area with `initialArea` property.\n\n## [0.5.0] - 2021.03.18\n* Enable to configure corner Dots with whatever Widget.\n* Enable to configure cropping mask colors and base colors.\n\n## [0.4.0] - 2021.03.18\n* Enable to change original image via `CropController`\n* Add callback when cropping area moves.\n* Enable to control cropping area programmatically via `CropController`\n* Fix bug that wrong cropping area is calculated when image is smaller than display.\n\n## [0.3.0] - 2021.03.17\n* Add example project in `example` directory.\n\n## [0.2.3] - 2021.03.17\n* Fix a bug of wrong cropping rect when vertically longer image is set.\n* Make the size of dots smaller.\n\n## [0.2.2] - 2021.03.16\n* Rename `isCircle` flag into `withCircleUi`. This flag no more affects the result of the shape of cropped images.\n* Add `CropController.cropCircle` method so that images are cropped with circle shape.\n\n## [0.2.1] - 2021.03.16\n* Enable to pass `isCircle` property to crop with circle shape. This flag can also be changed via `CropController`.\n\n## [0.2.0] - 2021.03.16\n* Enable to change `aspectRatio` dynamically via `CropController`.\n* Enable to set `initialSize` via `Crop` constructor.\n\n## [0.1.4] - 2021.03.16\n* Bug fixed. and improve performance.\n\n## [0.1.3] - 2021.03.16\n* Fix not to block UI update when cropping image.\n\n## [0.1.2] - 2021.03.15\n* Enable to fix aspect ratio if `aspectRatio` property is given.\n\n## [0.1.1] - 2021.03.14\n* Fix README.md\n\n## [0.1.0] - 2021.03.14\n\n* prevent Dot controls from exceeding thier horizontal / vertical limits.\n\n## [0.0.6] - 2021.03.12\n\n* change the type of `image` parameters to `UInt8List`.\n* return cropped data via `onCropped` callback.\n* now Crop Widget is available at any place and any size.\n\n## [0.0.5] - 2021.03.12\n\n* Enable controling crop actions via CropController.\n\n## [0.0.4] - 2021.03.12\n\n* Rename classes.\n\n## [0.0.3] - 2021.03.12\n\n* Add first implementation of crop_your_image.\n\n## [0.0.2] - 2021.03.12\n\n* Update information about this package.\n"
  },
  {
    "path": "LICENSE",
    "content": "                                 Apache License\n                           Version 2.0, January 2004\n                        http://www.apache.org/licenses/\n\n   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n   1. Definitions.\n\n      \"License\" shall mean the terms and conditions for use, reproduction,\n      and distribution as defined by Sections 1 through 9 of this document.\n\n      \"Licensor\" shall mean the copyright owner or entity authorized by\n      the copyright owner that is granting the License.\n\n      \"Legal Entity\" shall mean the union of the acting entity and all\n      other entities that control, are controlled by, or are under common\n      control with that entity. For the purposes of this definition,\n      \"control\" means (i) the power, direct or indirect, to cause the\n      direction or management of such entity, whether by contract or\n      otherwise, or (ii) ownership of fifty percent (50%) or more of the\n      outstanding shares, or (iii) beneficial ownership of such entity.\n\n      \"You\" (or \"Your\") shall mean an individual or Legal Entity\n      exercising permissions granted by this License.\n\n      \"Source\" form shall mean the preferred form for making modifications,\n      including but not limited to software source code, documentation\n      source, and configuration files.\n\n      \"Object\" form shall mean any form resulting from mechanical\n      transformation or translation of a Source form, including but\n      not limited to compiled object code, generated documentation,\n      and conversions to other media types.\n\n      \"Work\" shall mean the work of authorship, whether in Source or\n      Object form, made available under the License, as indicated by a\n      copyright notice that is included in or attached to the work\n      (an example is provided in the Appendix below).\n\n      \"Derivative Works\" shall mean any work, whether in Source or Object\n      form, that is based on (or derived from) the Work and for which the\n      editorial revisions, annotations, elaborations, or other modifications\n      represent, as a whole, an original work of authorship. For the purposes\n      of this License, Derivative Works shall not include works that remain\n      separable from, or merely link (or bind by name) to the interfaces of,\n      the Work and Derivative Works thereof.\n\n      \"Contribution\" shall mean any work of authorship, including\n      the original version of the Work and any modifications or additions\n      to that Work or Derivative Works thereof, that is intentionally\n      submitted to Licensor for inclusion in the Work by the copyright owner\n      or by an individual or Legal Entity authorized to submit on behalf of\n      the copyright owner. For the purposes of this definition, \"submitted\"\n      means any form of electronic, verbal, or written communication sent\n      to the Licensor or its representatives, including but not limited to\n      communication on electronic mailing lists, source code control systems,\n      and issue tracking systems that are managed by, or on behalf of, the\n      Licensor for the purpose of discussing and improving the Work, but\n      excluding communication that is conspicuously marked or otherwise\n      designated in writing by the copyright owner as \"Not a Contribution.\"\n\n      \"Contributor\" shall mean Licensor and any individual or Legal Entity\n      on behalf of whom a Contribution has been received by Licensor and\n      subsequently incorporated within the Work.\n\n   2. Grant of Copyright License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      copyright license to reproduce, prepare Derivative Works of,\n      publicly display, publicly perform, sublicense, and distribute the\n      Work and such Derivative Works in Source or Object form.\n\n   3. Grant of Patent License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      (except as stated in this section) patent license to make, have made,\n      use, offer to sell, sell, import, and otherwise transfer the Work,\n      where such license applies only to those patent claims licensable\n      by such Contributor that are necessarily infringed by their\n      Contribution(s) alone or by combination of their Contribution(s)\n      with the Work to which such Contribution(s) was submitted. If You\n      institute patent litigation against any entity (including a\n      cross-claim or counterclaim in a lawsuit) alleging that the Work\n      or a Contribution incorporated within the Work constitutes direct\n      or contributory patent infringement, then any patent licenses\n      granted to You under this License for that Work shall terminate\n      as of the date such litigation is filed.\n\n   4. Redistribution. You may reproduce and distribute copies of the\n      Work or Derivative Works thereof in any medium, with or without\n      modifications, and in Source or Object form, provided that You\n      meet the following conditions:\n\n      (a) You must give any other recipients of the Work or\n          Derivative Works a copy of this License; and\n\n      (b) You must cause any modified files to carry prominent notices\n          stating that You changed the files; and\n\n      (c) You must retain, in the Source form of any Derivative Works\n          that You distribute, all copyright, patent, trademark, and\n          attribution notices from the Source form of the Work,\n          excluding those notices that do not pertain to any part of\n          the Derivative Works; and\n\n      (d) If the Work includes a \"NOTICE\" text file as part of its\n          distribution, then any Derivative Works that You distribute must\n          include a readable copy of the attribution notices contained\n          within such NOTICE file, excluding those notices that do not\n          pertain to any part of the Derivative Works, in at least one\n          of the following places: within a NOTICE text file distributed\n          as part of the Derivative Works; within the Source form or\n          documentation, if provided along with the Derivative Works; or,\n          within a display generated by the Derivative Works, if and\n          wherever such third-party notices normally appear. The contents\n          of the NOTICE file are for informational purposes only and\n          do not modify the License. You may add Your own attribution\n          notices within Derivative Works that You distribute, alongside\n          or as an addendum to the NOTICE text from the Work, provided\n          that such additional attribution notices cannot be construed\n          as modifying the License.\n\n      You may add Your own copyright statement to Your modifications and\n      may provide additional or different license terms and conditions\n      for use, reproduction, or distribution of Your modifications, or\n      for any such Derivative Works as a whole, provided Your use,\n      reproduction, and distribution of the Work otherwise complies with\n      the conditions stated in this License.\n\n   5. Submission of Contributions. Unless You explicitly state otherwise,\n      any Contribution intentionally submitted for inclusion in the Work\n      by You to the Licensor shall be under the terms and conditions of\n      this License, without any additional terms or conditions.\n      Notwithstanding the above, nothing herein shall supersede or modify\n      the terms of any separate license agreement you may have executed\n      with Licensor regarding such Contributions.\n\n   6. Trademarks. This License does not grant permission to use the trade\n      names, trademarks, service marks, or product names of the Licensor,\n      except as required for reasonable and customary use in describing the\n      origin of the Work and reproducing the content of the NOTICE file.\n\n   7. Disclaimer of Warranty. Unless required by applicable law or\n      agreed to in writing, Licensor provides the Work (and each\n      Contributor provides its Contributions) on an \"AS IS\" BASIS,\n      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n      implied, including, without limitation, any warranties or conditions\n      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n      PARTICULAR PURPOSE. You are solely responsible for determining the\n      appropriateness of using or redistributing the Work and assume any\n      risks associated with Your exercise of permissions under this License.\n\n   8. Limitation of Liability. In no event and under no legal theory,\n      whether in tort (including negligence), contract, or otherwise,\n      unless required by applicable law (such as deliberate and grossly\n      negligent acts) or agreed to in writing, shall any Contributor be\n      liable to You for damages, including any direct, indirect, special,\n      incidental, or consequential damages of any character arising as a\n      result of this License or out of the use or inability to use the\n      Work (including but not limited to damages for loss of goodwill,\n      work stoppage, computer failure or malfunction, or any and all\n      other commercial damages or losses), even if such Contributor\n      has been advised of the possibility of such damages.\n\n   9. Accepting Warranty or Additional Liability. While redistributing\n      the Work or Derivative Works thereof, You may choose to offer,\n      and charge a fee for, acceptance of support, warranty, indemnity,\n      or other liability obligations and/or rights consistent with this\n      License. However, in accepting such obligations, You may act only\n      on Your own behalf and on Your sole responsibility, not on behalf\n      of any other Contributor, and only if You agree to indemnify,\n      defend, and hold each Contributor harmless for any liability\n      incurred by, or claims asserted against, such Contributor by reason\n      of your accepting any such warranty or additional liability.\n\n   END OF TERMS AND CONDITIONS\n\n   APPENDIX: How to apply the Apache License to your work.\n\n      To apply the Apache License to your work, attach the following\n      boilerplate notice, with the fields enclosed by brackets \"[]\"\n      replaced with your own identifying information. (Don't include\n      the brackets!)  The text should be enclosed in the appropriate\n      comment syntax for the file format. We also recommend that a\n      file or class name and description of purpose be included on the\n      same \"printed page\" as the copyright notice for easier\n      identification within third-party archives.\n\n   Copyright 2021 Tsuyoshi Chujo\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License."
  },
  {
    "path": "README.md",
    "content": "# crop_your_image\n\nA flutter plugin that provides `Crop` widget for cropping images.\n\n![Image Cropping Preview](https://github.com/chooyan-eng/crop_your_image/raw/main/assets/cropyourimage.gif)\n\n# Philosophy\n\ncrop_your_image provides _flexible_ and _customizable_ `Crop` widget that can be placed at anywhere in your well designed apps.\n\nAs `Crop` is a simple widget displaying minimum cropping UI, `Crop` can be placed anywhere such as, for example, occupying entire screen, at top half of the screen, or even on dialogs or bottom sheets. It's totally up to you!\n\nUsers' cropping operation is also customizable. By default, images are fixed on the screen and users can move crop rect to decide where to crop. Once configured _interactive_ mode, images can be zoomed/panned, and crop rect can be configured as fixed.\n\n`CropController` enables you to control _crop rect_ from outside of `Crop`. The controller allows you to run cropping (or related actions) from anywhere on your codebase.\n\nEnjoy building your own cropping UI with __crop_your_image__!\n\n## Features\n\n- __Minimum UI restrictions__\n- Flexible `Crop` widget __that can be placed anywhere__ on your widget tree\n- `CropController` to control `Crop`\n- __Zooming / panning__ images\n- Crop with __rect__ or __circle__ whichever you want\n- Fix __aspect ratio__\n- Configure `Rect` of _crop rect_ programmatically\n- Detect events of users' operation\n- Undo / Redo operation\n- (advanced) Cropping backend logics are also customizable\n\nNote that this package _DON'T_\n\n- read / download image data from any storages, such as gallery, internet, etc.\n- resize, tilt, or other conversions which can be done with [image](https://pub.dev/packages/image) package directly.\n- provide UI parts other than cropping editor, such as buttons to control. Building UI is fully UP TO YOU!\n\n## Usage\n\n### Basics\nPlace `Crop` Widget wherever you want to place image cropping UI.\n\n```dart\nfinal _controller = CropController();\n\n@override\nWidget build(BuildContext context) {\n  return Crop(\n    image: _imageData, \n    controller: _controller,\n    onCropped: (result) {\n      switch(result) {\n        case CropResult.success(:final croppedImage):\n          // do something with cropped image data \n        case CropResult.error(:final error):\n          // do something with error\n      }\n    }\n  );\n}\n```\n\nThen, `Crop` widget will automatically display cropping editor UI on users screen with given image.\n\nBy passing `CropController` instance to `controller` argument of `Crop`'s constructor, you can control the `Crop` widget from anywhere on your source code.\n\nFor example, when you want to crop the image with the current crop rect, you can just call `_controller.crop()` whenever you want, such like the code below.\n\n```dart\nElevatedButton(\n  child: Text('Crop it!')\n  onPressed: () => _cropController.crop(),\n),\n```\n\nBecause `_controller.crop()` only kicks the cropping process, this method returns immediately without any cropped image data. You can obtain the result of cropping images via `onCropped` callback of `Crop` Widget.\n\n### Undo / Redo\n\n\n`CropController` also provides `undo` and `redo` methods.\n\n```dart\nElevatedButton(\n  child: Text('Undo')\n  onPressed: () => _cropController.undo(),\n),\n```\n\nYou can also detect history of crop rect changes via `onHistoryChanged` callback of `Crop` Widget. This callback exposes `History` object, which contains `undoCount` and `redoCount`, that indicates how many times undo / redo operation is available.\n\n```dart\nCrop(\n  onHistoryChanged: (history) {\n    setState(() {\n      _undoEnabled = history.undoCount > 0;\n      _redoEnabled = history.redoCount > 0;\n    });\n  },\n)\n```\n\n### List of configurations \nAll the arguments of `Crop` and usages are below.\n\n```dart\nfinal _controller = CropController();\n\nWidget build(BuildContext context) {\n  return Crop(\n    image: _imageData,\n    controller: _controller,\n    onCropped: (result) {\n      switch(result) {\n        case CropResult.success(:final croppedImage):\n          // do something with cropped image data \n        case CropResult.error(:final error):\n          // do something with error\n      }\n    },\n    aspectRatio: 4 / 3,\n\n    initialRectBuilder: InitialRectBuilder.withBuilder((viewportRect, imageRect) {\n      return Rect.fromLTRB(\n        viewportRect.left + 24,\n        viewportRect.top + 32,\n        viewportRect.right - 24,\n        viewportRect.bottom - 32,\n      );\n    }),\n    // initialRectBuilder: InitialRectBuilder.withArea(\n    //   ImageBasedRect.fromLTWH(240, 212, 800, 600),\n    // ),\n    // initialRectBuilder: InitialRectBuilder.withSizeAndRatio(\n    //   size: 0.5,\n    //   aspectRatio: 4 / 3,\n    // ),\n\n    // withCircleUi: true,\n    baseColor: Colors.blue.shade900,\n    maskColor: Colors.white.withAlpha(100),\n    overlayBuilder: (context, rect) {\n      return CustomPaint(painter: MyPainter(rect));\n    },\n    progressIndicator: const CircularProgressIndicator(),\n    radius: 20,\n    onMoved: (newRect) {\n      // do something with current crop rect.\n    },\n    onImageMoved: (newImageRect) {\n      // do something with current image rect.\n    },\n    onStatusChanged: (status) {\n      // do something with current CropStatus\n    },\n    willUpdateScale: (newScale) {\n      // if returning false, scaling will be canceled\n      return newScale < 5;\n    },\n    cornerDotBuilder: (size, edgeAlignment) => const DotControl(color: Colors.blue),\n    clipBehavior: Clip.none,\n    interactive: true,\n    // fixCropRect: true,\n\n    // formatDetector: (image) {},\n    // imageCropper: myCustomImageCropper,\n    // imageParser: (image, {format}) {},\n  );\n}\n```\n\n|argument|type|description|\n|-|-|-|\n|image|Uint8List|Original image data to be cropped. The result of cropping operation can be obtained via `onCropped` callback.|\n|onCropped|void Function(CropResult)|Callback called when cropping operation is completed. The result is exposed as `CropResult` object. `CropResult.success()` contains cropped image data, and `CropResult.error()` contains error object.|\n|controller|CropController|Controller for managing cropping operation.|\n|aspectRatio|double?| Initial aspect ratio of crop rect. Set `null` or just omit if you want to crop images with any aspect ratio. `aspectRatio` can be changed dynamically via setter of `CropController.aspectRatio`. (see below)|\n|initialSize|double?| is the initial size of crop rect. `1.0` (or `null`, by default) fits the size of image, which means crop rect extends as much as possible. `0.5` would be the half. This value is also referred when `aspectRatio` changes via `CropController.aspectRatio`.|\n|initialRectBuilder|InitialRectBuilder?|An object preserving configuration for building the initial crop rect. `InitialRectBuilder.withBuilder` enables you to configure the rect with a function to decide initial `Rect` of crop rect based on viewport of `Crop` itself. `InitialRectBuilder.withArea` enables you to configure the rect with `ImageBasedRect` which is based on actual image size. `InitialRectBuilder.withSizeAndRatio` enables you to configure the rect with `size` and `aspectRatio`.|\n|withCircleUi|bool|Flag to decide the shape of cropping UI. If `true`, the shape of cropping UI is circle and `aspectRatio` is automatically set `1.0`. Note that this flag does NOT affect to the result of cropping image. If you want cropped images with circle shape, call `CropController.cropCircle` instead of `CropController.crop`.|\n|maskColor|Color?|Color of the mask widget which is placed over the cropping editor.|\n|baseColor|Color?|Color of the base color of the cropping editor.|\n|overlayBuilder|Widget Function(BuildContext, ViewportBasedRect)?|Builder function to build Widget placed over the cropping rect. `rect` of argument is current `ViewportBasedRect` of crop rect.|\n|radius|double?|Corner radius of crop rect.|\n|onMoved|void Function(ViewportBasedRect)?|Callback called when crop rect is moved regardless of its reasons. `newRect` of argument is current `ViewportBasedRect` of crop rect.|\n|onImageMoved|void Function(ViewportBasedRect)?|Callback called when image is moved regardless of its reasons. `newImageRect` of argument is current `ViewportBasedRect` of image.|\n|onHistoryChanged|void Function(History)?|Callback called when history of crop rect is changed. This history allows you to undo / redo feature is available or not.|\n|onStatusChanged|void Function(CropStatus)?|Callback called when status of Crop is changed.|\n|willUpdateScale|bool Function(double)?|Callback called before scale changes on _interactive_ mode. By returning `false` to this callback, updating scale will be canceled.|\n|cornerDotBuilder|Widget Function(Size, EdgeAlignment)?|Builder function to build Widget placed at four corners used to move crop rect. The builder passes `size` which widget must follow and `edgeAlignment` which indicates the position.|\n|progressIndicator|Widget?|Widget for showing preparing image is in progress. Nothing (`SizedBox.shrink()` actually) is shown by default.|\n|interactive|bool?|Flag to enable _interactive_ mode that users can move / zoom images. `false` by default|\n|fixCropRect|bool?|Flag if crop rect should be fixed on _interactive_ mode. `false` by default|\n|clipBehavior|Clip?|Decide clipping strategy for `Crop`. `Clip.hardEdge` by default|\n|filterQuality|FilterQuality?|Decide filter quality for `Image` showing target image. `FilterQuality.low` by default|\n\n### for Web\n\n|argument|type|description|\n|-|-|-|\n|scrollZoomSensitivity|double?|Sensitivity for zoom gesture using mouse-wheel. For web applications only.|\n\n### Advanced\n\n`crop_your_image` also allows you to customize backend logic for \n\n- detecting the format of the image\n- detecting detail information (width / height) of the image\n- cropping\n\nby passing the arguments below.\n\n|argument|type|description|\n|-|-|-|\n|formatDetector|ImageFormat Function(Uint8List)?|Function to detect the format of original image. By detecting the format before `imageParser` parses the original image from `Uint8List` to `ImageDetail`, `imageParser` will sufficiently parse the binary, which means the initializing operation speeds up. `defaultFormatDetector` is used by default|\n|imageParser|ImageDetail<T> Function(Uint8List, {ImageFormat})?|Function for parsing original image from `Uint8List` to `ImageDetail`, which preserve `height`, `width` and parsed `image` with generic type `<T>`. `image` is passed to `imageCropper` with `Rect` to be cropped. `defaultImageParser` is used by default|\n|imageCropper|ImageCropper<T>?|By implementing `ImageCropper<T>` and passing its instance to this argument, you can exchange cropping logic. `defaultImageCropper` is used by default|\n\n# Gallery App\n\nThe repository below is for a sample app of using crop_your_image.\n|\n[chooyan-eng/crop_your_image_gallery](https://github.com/chooyan-eng/crop_your_image_gallery)\n\nYou can find several examples with executable source codes here.\n\n# Contact\n\nIf you have anything you want to inform me ([@chooyan-eng](https://github.com/chooyan-eng)), such as suggestions to enhance this package or functionalities you want etc, feel free to make [issues on GitHub](https://github.com/chooyan-eng/crop_your_image/issues) or send messages on X [@tsuyoshi_chujo](https://x.com/tsuyoshi_chujo) (Japanese [@chooyan_i18n](https://x.com/chooyan_i18n))."
  },
  {
    "path": "analysis_options.yaml",
    "content": "analyzer:\n  errors:\n    todo: ignore\n "
  },
  {
    "path": "docs/architecture.md",
    "content": "This document describes how crop_your_image is implemented. This is not only for the maintainers but also Cursor editor, which supports coding and refactoring using AI.\n\n# Architecture of crop_your_image\n\n## Overview\n\nAt first, crop_your_image is a Flutter package that provides a widget named `Crop` and its controller `CropController`.\n\nBecause this package requires a lot of calculations for detecting the cropping area, we have internally `Calculator` class.  \n\nIn addition, `Crop` also provides a mechanism to interchange backend logics for:\n\n- Determining the given image format\n- Parsing the image from `Uint8List` to whatever data type \n- Cropping the image with given rect\n\nThe default backend uses `image` package for all the image processing, but this mechanism allows you to use other packages, or even delegate the processing to your server side.\n\n## Crop\n\n`Crop` is designed to be a handy widget that can be used at anywhere; this may be used in a `Dialog`, or a `BottomSheet`, etc.\n\nTo achieve the design, `Crop` first checks the size of its viewport respecting the given constraints, then it overrides the `MediaQueryData.size` with the size so that its subtree can find the desired size calling `MediaQuery.sizeOf(context)`.\n\nThis mechanism introduces one restriction that the user must supply the size of the viewport to `Crop` explicitly, typically using `SizedBox`, `AspectRatio`, or `Expanded`.\n\n`Crop`, or internal `_CropEditor` widget, doesn't use `InteractiveViewer` but does all the calculations for zooming and panning based on the given info by `GestureDetector`. This is because `InteractiveViewer` doesn't provide a handy way to get the current zoom level and pan position, which are required for the cropping area calculation.\n\n## CropController\n\nUsers may want to imperatively control `Crop` widget, as in `TextField` has `TextEditingController`. Thus, `Crop` provides `CropController` to allow users to control the widget, such as calling `crop()`.\n\nOnce the controller is given to `Crop`, this initializes the controller in `initState()` with attaching `CropControllerDelegate` and its methods declared with `late` keyword.\n\nTODO(chooyan-eng): Revise the implementation of `TextEditingController` or other controller patterns and if `CropController` follows the same pattern.\n\n## Calculator\n\n`Calculator` class is a utility to calculate various data for cropping.\n\ncrop_your_image requires various kinds of data, such as:\n\n- Actual image size\n- Displaying image size on viewport\n- Current zoom level\n- Current pan position\n- The rect of the cropping area based on given viewport\n- The rect of the cropping area based on given image size\n- Given aspect ratio for cropping area\n- Given initial size for cropping area\n\nmeaning the calculation logic is always complex. \n\nTo keep the code clean and testable, `Calculator` provides all the calculation logic in a pure Dart logic.\n\nThe calculation logic changes depending on the given image fits vertically or horizontally to the viewport. So `Calculator` has two implementations, `VerticalCalculator` and `HorizontalCalculator`.\n\nTODO(chooyan-eng): Revise the calculation logic must be separated depending on the given image aspect ratio. There can be a nice calculation to be applied regardless of the image orientation.\n\nTODO(chooyan-eng): Currently, `Calculator` exposes the *methods* for calculation and `Crop` calls the methods whenever it needs, however, this can be refactored with the idea mentioned in https://github.com/chooyan-eng/complex_local_state_management/blob/main/docs/local_state.md\n\n"
  },
  {
    "path": "example/.gitignore",
    "content": "# Miscellaneous\n*.class\n*.log\n*.pyc\n*.swp\n.DS_Store\n.atom/\n.buildlog/\n.history\n.svn/\n\n# IntelliJ related\n*.iml\n*.ipr\n*.iws\n.idea/\n\n# The .vscode folder contains launch configuration and tasks you configure in\n# VS Code which you may wish to be included in version control, so this line\n# is commented out by default.\n#.vscode/\n\n# Flutter/Dart/Pub related\n**/doc/api/\n**/ios/Flutter/.last_build_id\n.dart_tool/\n.flutter-plugins\n.flutter-plugins-dependencies\n.packages\n.pub-cache/\n.pub/\n/build/\n\n# Web related\nlib/generated_plugin_registrant.dart\n\n# Symbolication related\napp.*.symbols\n\n# Obfuscation related\napp.*.map.json\n\n# Android Studio will place build artifacts here\n/android/app/debug\n/android/app/profile\n/android/app/release\n"
  },
  {
    "path": "example/.metadata",
    "content": "# This file tracks properties of this Flutter project.\n# Used by Flutter tool to assess capabilities and perform upgrades etc.\n#\n# This file should be version controlled and should not be manually edited.\n\nversion:\n  revision: \"41456452f29d64e8deb623a3c927524bcf9f111b\"\n  channel: \"stable\"\n\nproject_type: app\n\n# Tracks metadata for the flutter migrate command\nmigration:\n  platforms:\n    - platform: root\n      create_revision: 41456452f29d64e8deb623a3c927524bcf9f111b\n      base_revision: 41456452f29d64e8deb623a3c927524bcf9f111b\n    - platform: macos\n      create_revision: 41456452f29d64e8deb623a3c927524bcf9f111b\n      base_revision: 41456452f29d64e8deb623a3c927524bcf9f111b\n    - platform: windows\n      create_revision: 41456452f29d64e8deb623a3c927524bcf9f111b\n      base_revision: 41456452f29d64e8deb623a3c927524bcf9f111b\n\n  # User provided section\n\n  # List of Local paths (relative to this file) that should be\n  # ignored by the migrate tool.\n  #\n  # Files that are not part of the templates will be ignored by default.\n  unmanaged_files:\n    - 'lib/main.dart'\n    - 'ios/Runner.xcodeproj/project.pbxproj'\n"
  },
  {
    "path": "example/README.md",
    "content": "# example\n\nA new Flutter project.\n\n## Getting Started\n\nThis project is a starting point for a Flutter application.\n\nA few resources to get you started if this is your first Flutter project:\n\n- [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab)\n- [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook)\n\nFor help getting started with Flutter, view our\n[online documentation](https://flutter.dev/docs), which offers tutorials,\nsamples, guidance on mobile development, and a full API reference.\n"
  },
  {
    "path": "example/analysis_options.yaml",
    "content": "# This file configures the analyzer, which statically analyzes Dart code to\n# check for errors, warnings, and lints.\n#\n# The issues identified by the analyzer are surfaced in the UI of Dart-enabled\n# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be\n# invoked from the command line by running `flutter analyze`.\n\n# The following line activates a set of recommended lints for Flutter apps,\n# packages, and plugins designed to encourage good coding practices.\n\nlinter:\n  # The lint rules applied to this project can be customized in the\n  # section below to disable rules from the `package:flutter_lints/flutter.yaml`\n  # included above or to enable additional rules. A list of all available lints\n  # and their documentation is published at https://dart.dev/lints.\n  #\n  # Instead of disabling a lint rule for the entire project in the\n  # section below, it can also be suppressed for a single line of code\n  # or a specific dart file by using the `// ignore: name_of_lint` and\n  # `// ignore_for_file: name_of_lint` syntax on the line or in the file\n  # producing the lint.\n  rules:\n    # avoid_print: false  # Uncomment to disable the `avoid_print` rule\n    # prefer_single_quotes: true  # Uncomment to enable the `prefer_single_quotes` rule\n\n# Additional information about this file can be found at\n# https://dart.dev/guides/language/analysis-options\n"
  },
  {
    "path": "example/android/.gitignore",
    "content": "gradle-wrapper.jar\n/.gradle\n/captures/\n/gradlew\n/gradlew.bat\n/local.properties\nGeneratedPluginRegistrant.java\n\n# Remember to never publicly share your keystore.\n# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app\nkey.properties\n"
  },
  {
    "path": "example/android/app/build.gradle",
    "content": "def localProperties = new Properties()\ndef localPropertiesFile = rootProject.file('local.properties')\nif (localPropertiesFile.exists()) {\n    localPropertiesFile.withReader('UTF-8') { reader ->\n        localProperties.load(reader)\n    }\n}\n\ndef flutterRoot = localProperties.getProperty('flutter.sdk')\nif (flutterRoot == null) {\n    throw new GradleException(\"Flutter SDK not found. Define location with flutter.sdk in the local.properties file.\")\n}\n\ndef flutterVersionCode = localProperties.getProperty('flutter.versionCode')\nif (flutterVersionCode == null) {\n    flutterVersionCode = '1'\n}\n\ndef flutterVersionName = localProperties.getProperty('flutter.versionName')\nif (flutterVersionName == null) {\n    flutterVersionName = '1.0'\n}\n\napply plugin: 'com.android.application'\napply plugin: 'kotlin-android'\napply from: \"$flutterRoot/packages/flutter_tools/gradle/flutter.gradle\"\n\nandroid {\n    compileSdkVersion 33\n\n    sourceSets {\n        main.java.srcDirs += 'src/main/kotlin'\n    }\n\n    defaultConfig {\n        // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).\n        applicationId \"com.example.example\"\n        minSdkVersion 16\n        targetSdkVersion 33\n        versionCode flutterVersionCode.toInteger()\n        versionName flutterVersionName\n    }\n\n    buildTypes {\n        release {\n            // TODO: Add your own signing config for the release build.\n            // Signing with the debug keys for now, so `flutter run --release` works.\n            signingConfig signingConfigs.debug\n        }\n    }\n}\n\nflutter {\n    source '../..'\n}\n\ndependencies {\n    implementation \"org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version\"\n}\n"
  },
  {
    "path": "example/android/app/src/debug/AndroidManifest.xml",
    "content": "<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    package=\"com.example.example\">\n    <!-- Flutter needs it to communicate with the running application\n         to allow setting breakpoints, to provide hot reload, etc.\n    -->\n    <uses-permission android:name=\"android.permission.INTERNET\"/>\n</manifest>\n"
  },
  {
    "path": "example/android/app/src/main/AndroidManifest.xml",
    "content": "<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    package=\"com.example.example\">\n   <application\n        android:label=\"example\"\n        android:icon=\"@mipmap/ic_launcher\">\n        <activity\n            android:name=\".MainActivity\"\n            android:launchMode=\"singleTop\"\n            android:theme=\"@style/LaunchTheme\"\n            android:configChanges=\"orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode\"\n            android:hardwareAccelerated=\"true\"\n            android:exported=\"true\"\n            android:windowSoftInputMode=\"adjustResize\">\n            <!-- Specifies an Android theme to apply to this Activity as soon as\n                 the Android process has started. This theme is visible to the user\n                 while the Flutter UI initializes. After that, this theme continues\n                 to determine the Window background behind the Flutter UI. -->\n            <meta-data\n              android:name=\"io.flutter.embedding.android.NormalTheme\"\n              android:resource=\"@style/NormalTheme\"\n              />\n            <!-- Displays an Android View that continues showing the launch screen\n                 Drawable until Flutter paints its first frame, then this splash\n                 screen fades out. A splash screen is useful to avoid any visual\n                 gap between the end of Android's launch screen and the painting of\n                 Flutter's first frame. -->\n            <meta-data\n              android:name=\"io.flutter.embedding.android.SplashScreenDrawable\"\n              android:resource=\"@drawable/launch_background\"\n              />\n            <intent-filter>\n                <action android:name=\"android.intent.action.MAIN\"/>\n                <category android:name=\"android.intent.category.LAUNCHER\"/>\n            </intent-filter>\n        </activity>\n        <!-- Don't delete the meta-data below.\n             This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->\n        <meta-data\n            android:name=\"flutterEmbedding\"\n            android:value=\"2\" />\n    </application>\n</manifest>\n"
  },
  {
    "path": "example/android/app/src/main/kotlin/com/example/example/MainActivity.kt",
    "content": "package com.example.example\n\nimport io.flutter.embedding.android.FlutterActivity\n\nclass MainActivity: FlutterActivity() {\n}\n"
  },
  {
    "path": "example/android/app/src/main/res/drawable/launch_background.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!-- Modify this file to customize your launch splash screen -->\n<layer-list xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <item android:drawable=\"@android:color/white\" />\n\n    <!-- You can insert your own image assets here -->\n    <!-- <item>\n        <bitmap\n            android:gravity=\"center\"\n            android:src=\"@mipmap/launch_image\" />\n    </item> -->\n</layer-list>\n"
  },
  {
    "path": "example/android/app/src/main/res/drawable-v21/launch_background.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!-- Modify this file to customize your launch splash screen -->\n<layer-list xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <item android:drawable=\"?android:colorBackground\" />\n\n    <!-- You can insert your own image assets here -->\n    <!-- <item>\n        <bitmap\n            android:gravity=\"center\"\n            android:src=\"@mipmap/launch_image\" />\n    </item> -->\n</layer-list>\n"
  },
  {
    "path": "example/android/app/src/main/res/values/styles.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n    <!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is off -->\n    <style name=\"LaunchTheme\" parent=\"@android:style/Theme.Light.NoTitleBar\">\n        <!-- Show a splash screen on the activity. Automatically removed when\n             Flutter draws its first frame -->\n        <item name=\"android:windowBackground\">@drawable/launch_background</item>\n    </style>\n    <!-- Theme applied to the Android Window as soon as the process has started.\n         This theme determines the color of the Android Window while your\n         Flutter UI initializes, as well as behind your Flutter UI while its\n         running.\n         \n         This Theme is only used starting with V2 of Flutter's Android embedding. -->\n    <style name=\"NormalTheme\" parent=\"@android:style/Theme.Light.NoTitleBar\">\n        <item name=\"android:windowBackground\">?android:colorBackground</item>\n    </style>\n</resources>\n"
  },
  {
    "path": "example/android/app/src/main/res/values-night/styles.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n    <!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is on -->\n    <style name=\"LaunchTheme\" parent=\"@android:style/Theme.Black.NoTitleBar\">\n        <!-- Show a splash screen on the activity. Automatically removed when\n             Flutter draws its first frame -->\n        <item name=\"android:windowBackground\">@drawable/launch_background</item>\n    </style>\n    <!-- Theme applied to the Android Window as soon as the process has started.\n         This theme determines the color of the Android Window while your\n         Flutter UI initializes, as well as behind your Flutter UI while its\n         running.\n         \n         This Theme is only used starting with V2 of Flutter's Android embedding. -->\n    <style name=\"NormalTheme\" parent=\"@android:style/Theme.Black.NoTitleBar\">\n        <item name=\"android:windowBackground\">?android:colorBackground</item>\n    </style>\n</resources>\n"
  },
  {
    "path": "example/android/app/src/profile/AndroidManifest.xml",
    "content": "<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    package=\"com.example.example\">\n    <!-- Flutter needs it to communicate with the running application\n         to allow setting breakpoints, to provide hot reload, etc.\n    -->\n    <uses-permission android:name=\"android.permission.INTERNET\"/>\n</manifest>\n"
  },
  {
    "path": "example/android/build.gradle",
    "content": "buildscript {\n    ext.kotlin_version = '1.7.20'\n    repositories {\n        google()\n        mavenCentral()\n    }\n\n    dependencies {\n        classpath 'com.android.tools.build:gradle:7.1.3'\n        classpath \"org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version\"\n    }\n}\n\nallprojects {\n    repositories {\n        google()\n        mavenCentral()\n    }\n}\n\nrootProject.buildDir = '../build'\nsubprojects {\n    project.buildDir = \"${rootProject.buildDir}/${project.name}\"\n}\nsubprojects {\n    project.evaluationDependsOn(':app')\n}\n\ntask clean(type: Delete) {\n    delete rootProject.buildDir\n}\n"
  },
  {
    "path": "example/android/gradle/wrapper/gradle-wrapper.properties",
    "content": "#Fri Jun 23 08:50:38 CEST 2017\ndistributionBase=GRADLE_USER_HOME\ndistributionPath=wrapper/dists\nzipStoreBase=GRADLE_USER_HOME\nzipStorePath=wrapper/dists\ndistributionUrl=https\\://services.gradle.org/distributions/gradle-7.5.1-all.zip\n"
  },
  {
    "path": "example/android/gradle.properties",
    "content": "org.gradle.jvmargs=-Xmx1536M\nandroid.useAndroidX=true\nandroid.enableJetifier=true\n"
  },
  {
    "path": "example/android/settings.gradle",
    "content": "include ':app'\n\ndef localPropertiesFile = new File(rootProject.projectDir, \"local.properties\")\ndef properties = new Properties()\n\nassert localPropertiesFile.exists()\nlocalPropertiesFile.withReader(\"UTF-8\") { reader -> properties.load(reader) }\n\ndef flutterSdkPath = properties.getProperty(\"flutter.sdk\")\nassert flutterSdkPath != null, \"flutter.sdk not set in local.properties\"\napply from: \"$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle\"\n"
  },
  {
    "path": "example/ios/.gitignore",
    "content": "*.mode1v3\n*.mode2v3\n*.moved-aside\n*.pbxuser\n*.perspectivev3\n**/*sync/\n.sconsign.dblite\n.tags*\n**/.vagrant/\n**/DerivedData/\nIcon?\n**/Pods/\n**/.symlinks/\nprofile\nxcuserdata\n**/.generated/\nFlutter/App.framework\nFlutter/Flutter.framework\nFlutter/Flutter.podspec\nFlutter/Generated.xcconfig\nFlutter/app.flx\nFlutter/app.zip\nFlutter/flutter_assets/\nFlutter/flutter_export_environment.sh\nServiceDefinitions.json\nRunner/GeneratedPluginRegistrant.*\n\n# Exceptions to above rules.\n!default.mode1v3\n!default.mode2v3\n!default.pbxuser\n!default.perspectivev3\n"
  },
  {
    "path": "example/ios/Flutter/AppFrameworkInfo.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n  <key>CFBundleDevelopmentRegion</key>\n  <string>en</string>\n  <key>CFBundleExecutable</key>\n  <string>App</string>\n  <key>CFBundleIdentifier</key>\n  <string>io.flutter.flutter.app</string>\n  <key>CFBundleInfoDictionaryVersion</key>\n  <string>6.0</string>\n  <key>CFBundleName</key>\n  <string>App</string>\n  <key>CFBundlePackageType</key>\n  <string>FMWK</string>\n  <key>CFBundleShortVersionString</key>\n  <string>1.0</string>\n  <key>CFBundleSignature</key>\n  <string>????</string>\n  <key>CFBundleVersion</key>\n  <string>1.0</string>\n  <key>MinimumOSVersion</key>\n  <string>12.0</string>\n</dict>\n</plist>\n"
  },
  {
    "path": "example/ios/Flutter/Debug.xcconfig",
    "content": "#include \"Generated.xcconfig\"\n"
  },
  {
    "path": "example/ios/Flutter/Release.xcconfig",
    "content": "#include \"Generated.xcconfig\"\n"
  },
  {
    "path": "example/ios/Runner/AppDelegate.swift",
    "content": "import UIKit\nimport Flutter\n\n@main\n@objc class AppDelegate: FlutterAppDelegate {\n  override func application(\n    _ application: UIApplication,\n    didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?\n  ) -> Bool {\n    GeneratedPluginRegistrant.register(with: self)\n    return super.application(application, didFinishLaunchingWithOptions: launchOptions)\n  }\n}\n"
  },
  {
    "path": "example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json",
    "content": "{\n  \"images\" : [\n    {\n      \"size\" : \"20x20\",\n      \"idiom\" : \"iphone\",\n      \"filename\" : \"Icon-App-20x20@2x.png\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"size\" : \"20x20\",\n      \"idiom\" : \"iphone\",\n      \"filename\" : \"Icon-App-20x20@3x.png\",\n      \"scale\" : \"3x\"\n    },\n    {\n      \"size\" : \"29x29\",\n      \"idiom\" : \"iphone\",\n      \"filename\" : \"Icon-App-29x29@1x.png\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"size\" : \"29x29\",\n      \"idiom\" : \"iphone\",\n      \"filename\" : \"Icon-App-29x29@2x.png\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"size\" : \"29x29\",\n      \"idiom\" : \"iphone\",\n      \"filename\" : \"Icon-App-29x29@3x.png\",\n      \"scale\" : \"3x\"\n    },\n    {\n      \"size\" : \"40x40\",\n      \"idiom\" : \"iphone\",\n      \"filename\" : \"Icon-App-40x40@2x.png\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"size\" : \"40x40\",\n      \"idiom\" : \"iphone\",\n      \"filename\" : \"Icon-App-40x40@3x.png\",\n      \"scale\" : \"3x\"\n    },\n    {\n      \"size\" : \"60x60\",\n      \"idiom\" : \"iphone\",\n      \"filename\" : \"Icon-App-60x60@2x.png\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"size\" : \"60x60\",\n      \"idiom\" : \"iphone\",\n      \"filename\" : \"Icon-App-60x60@3x.png\",\n      \"scale\" : \"3x\"\n    },\n    {\n      \"size\" : \"20x20\",\n      \"idiom\" : \"ipad\",\n      \"filename\" : \"Icon-App-20x20@1x.png\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"size\" : \"20x20\",\n      \"idiom\" : \"ipad\",\n      \"filename\" : \"Icon-App-20x20@2x.png\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"size\" : \"29x29\",\n      \"idiom\" : \"ipad\",\n      \"filename\" : \"Icon-App-29x29@1x.png\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"size\" : \"29x29\",\n      \"idiom\" : \"ipad\",\n      \"filename\" : \"Icon-App-29x29@2x.png\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"size\" : \"40x40\",\n      \"idiom\" : \"ipad\",\n      \"filename\" : \"Icon-App-40x40@1x.png\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"size\" : \"40x40\",\n      \"idiom\" : \"ipad\",\n      \"filename\" : \"Icon-App-40x40@2x.png\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"size\" : \"76x76\",\n      \"idiom\" : \"ipad\",\n      \"filename\" : \"Icon-App-76x76@1x.png\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"size\" : \"76x76\",\n      \"idiom\" : \"ipad\",\n      \"filename\" : \"Icon-App-76x76@2x.png\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"size\" : \"83.5x83.5\",\n      \"idiom\" : \"ipad\",\n      \"filename\" : \"Icon-App-83.5x83.5@2x.png\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"size\" : \"1024x1024\",\n      \"idiom\" : \"ios-marketing\",\n      \"filename\" : \"Icon-App-1024x1024@1x.png\",\n      \"scale\" : \"1x\"\n    }\n  ],\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  }\n}\n"
  },
  {
    "path": "example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json",
    "content": "{\n  \"images\" : [\n    {\n      \"idiom\" : \"universal\",\n      \"filename\" : \"LaunchImage.png\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"filename\" : \"LaunchImage@2x.png\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"filename\" : \"LaunchImage@3x.png\",\n      \"scale\" : \"3x\"\n    }\n  ],\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  }\n}\n"
  },
  {
    "path": "example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md",
    "content": "# Launch Screen Assets\n\nYou can customize the launch screen with your own desired assets by replacing the image files in this directory.\n\nYou can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images."
  },
  {
    "path": "example/ios/Runner/Base.lproj/LaunchScreen.storyboard",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n<document type=\"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB\" version=\"3.0\" toolsVersion=\"12121\" systemVersion=\"16G29\" targetRuntime=\"iOS.CocoaTouch\" propertyAccessControl=\"none\" useAutolayout=\"YES\" launchScreen=\"YES\" colorMatched=\"YES\" initialViewController=\"01J-lp-oVM\">\n    <dependencies>\n        <deployment identifier=\"iOS\"/>\n        <plugIn identifier=\"com.apple.InterfaceBuilder.IBCocoaTouchPlugin\" version=\"12089\"/>\n    </dependencies>\n    <scenes>\n        <!--View Controller-->\n        <scene sceneID=\"EHf-IW-A2E\">\n            <objects>\n                <viewController id=\"01J-lp-oVM\" sceneMemberID=\"viewController\">\n                    <layoutGuides>\n                        <viewControllerLayoutGuide type=\"top\" id=\"Ydg-fD-yQy\"/>\n                        <viewControllerLayoutGuide type=\"bottom\" id=\"xbc-2k-c8Z\"/>\n                    </layoutGuides>\n                    <view key=\"view\" contentMode=\"scaleToFill\" id=\"Ze5-6b-2t3\">\n                        <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                        <subviews>\n                            <imageView opaque=\"NO\" clipsSubviews=\"YES\" multipleTouchEnabled=\"YES\" contentMode=\"center\" image=\"LaunchImage\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"YRO-k0-Ey4\">\n                            </imageView>\n                        </subviews>\n                        <color key=\"backgroundColor\" red=\"1\" green=\"1\" blue=\"1\" alpha=\"1\" colorSpace=\"custom\" customColorSpace=\"sRGB\"/>\n                        <constraints>\n                            <constraint firstItem=\"YRO-k0-Ey4\" firstAttribute=\"centerX\" secondItem=\"Ze5-6b-2t3\" secondAttribute=\"centerX\" id=\"1a2-6s-vTC\"/>\n                            <constraint firstItem=\"YRO-k0-Ey4\" firstAttribute=\"centerY\" secondItem=\"Ze5-6b-2t3\" secondAttribute=\"centerY\" id=\"4X2-HB-R7a\"/>\n                        </constraints>\n                    </view>\n                </viewController>\n                <placeholder placeholderIdentifier=\"IBFirstResponder\" id=\"iYj-Kq-Ea1\" userLabel=\"First Responder\" sceneMemberID=\"firstResponder\"/>\n            </objects>\n            <point key=\"canvasLocation\" x=\"53\" y=\"375\"/>\n        </scene>\n    </scenes>\n    <resources>\n        <image name=\"LaunchImage\" width=\"168\" height=\"185\"/>\n    </resources>\n</document>\n"
  },
  {
    "path": "example/ios/Runner/Base.lproj/Main.storyboard",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n<document type=\"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB\" version=\"3.0\" toolsVersion=\"10117\" systemVersion=\"15F34\" targetRuntime=\"iOS.CocoaTouch\" propertyAccessControl=\"none\" useAutolayout=\"YES\" useTraitCollections=\"YES\" initialViewController=\"BYZ-38-t0r\">\n    <dependencies>\n        <deployment identifier=\"iOS\"/>\n        <plugIn identifier=\"com.apple.InterfaceBuilder.IBCocoaTouchPlugin\" version=\"10085\"/>\n    </dependencies>\n    <scenes>\n        <!--Flutter View Controller-->\n        <scene sceneID=\"tne-QT-ifu\">\n            <objects>\n                <viewController id=\"BYZ-38-t0r\" customClass=\"FlutterViewController\" sceneMemberID=\"viewController\">\n                    <layoutGuides>\n                        <viewControllerLayoutGuide type=\"top\" id=\"y3c-jy-aDJ\"/>\n                        <viewControllerLayoutGuide type=\"bottom\" id=\"wfy-db-euE\"/>\n                    </layoutGuides>\n                    <view key=\"view\" contentMode=\"scaleToFill\" id=\"8bC-Xf-vdC\">\n                        <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"600\" height=\"600\"/>\n                        <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                        <color key=\"backgroundColor\" white=\"1\" alpha=\"1\" colorSpace=\"custom\" customColorSpace=\"calibratedWhite\"/>\n                    </view>\n                </viewController>\n                <placeholder placeholderIdentifier=\"IBFirstResponder\" id=\"dkx-z0-nzr\" sceneMemberID=\"firstResponder\"/>\n            </objects>\n        </scene>\n    </scenes>\n</document>\n"
  },
  {
    "path": "example/ios/Runner/Info.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>CFBundleDevelopmentRegion</key>\n\t<string>$(DEVELOPMENT_LANGUAGE)</string>\n\t<key>CFBundleExecutable</key>\n\t<string>$(EXECUTABLE_NAME)</string>\n\t<key>CFBundleIdentifier</key>\n\t<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>\n\t<key>CFBundleInfoDictionaryVersion</key>\n\t<string>6.0</string>\n\t<key>CFBundleName</key>\n\t<string>example</string>\n\t<key>CFBundlePackageType</key>\n\t<string>APPL</string>\n\t<key>CFBundleShortVersionString</key>\n\t<string>$(FLUTTER_BUILD_NAME)</string>\n\t<key>CFBundleSignature</key>\n\t<string>????</string>\n\t<key>CFBundleVersion</key>\n\t<string>$(FLUTTER_BUILD_NUMBER)</string>\n\t<key>LSRequiresIPhoneOS</key>\n\t<true/>\n\t<key>UILaunchStoryboardName</key>\n\t<string>LaunchScreen</string>\n\t<key>UIMainStoryboardFile</key>\n\t<string>Main</string>\n\t<key>UISupportedInterfaceOrientations</key>\n\t<array>\n\t\t<string>UIInterfaceOrientationPortrait</string>\n\t\t<string>UIInterfaceOrientationLandscapeLeft</string>\n\t\t<string>UIInterfaceOrientationLandscapeRight</string>\n\t</array>\n\t<key>UISupportedInterfaceOrientations~ipad</key>\n\t<array>\n\t\t<string>UIInterfaceOrientationPortrait</string>\n\t\t<string>UIInterfaceOrientationPortraitUpsideDown</string>\n\t\t<string>UIInterfaceOrientationLandscapeLeft</string>\n\t\t<string>UIInterfaceOrientationLandscapeRight</string>\n\t</array>\n\t<key>UIViewControllerBasedStatusBarAppearance</key>\n\t<false/>\n\t<key>CADisableMinimumFrameDurationOnPhone</key>\n\t<true/>\n\t<key>UIApplicationSupportsIndirectInputEvents</key>\n\t<true/>\n</dict>\n</plist>\n"
  },
  {
    "path": "example/ios/Runner/Runner-Bridging-Header.h",
    "content": "#import \"GeneratedPluginRegistrant.h\"\n"
  },
  {
    "path": "example/ios/Runner.xcodeproj/project.pbxproj",
    "content": "// !$*UTF8*$!\n{\n\tarchiveVersion = 1;\n\tclasses = {\n\t};\n\tobjectVersion = 54;\n\tobjects = {\n\n/* Begin PBXBuildFile section */\n\t\t1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };\n\t\t3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };\n\t\t74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };\n\t\t97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };\n\t\t97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };\n\t\t97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };\n/* End PBXBuildFile section */\n\n/* Begin PBXCopyFilesBuildPhase section */\n\t\t9705A1C41CF9048500538489 /* Embed Frameworks */ = {\n\t\t\tisa = PBXCopyFilesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tdstPath = \"\";\n\t\t\tdstSubfolderSpec = 10;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\tname = \"Embed Frameworks\";\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXCopyFilesBuildPhase section */\n\n/* Begin PBXFileReference section */\n\t\t1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = \"<group>\"; };\n\t\t1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = \"<group>\"; };\n\t\t3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = \"<group>\"; };\n\t\t74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = \"Runner-Bridging-Header.h\"; sourceTree = \"<group>\"; };\n\t\t74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = \"<group>\"; };\n\t\t7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = \"<group>\"; };\n\t\t9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = \"<group>\"; };\n\t\t9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = \"<group>\"; };\n\t\t97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\t97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = \"<group>\"; };\n\t\t97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = \"<group>\"; };\n\t\t97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = \"<group>\"; };\n\t\t97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = \"<group>\"; };\n/* End PBXFileReference section */\n\n/* Begin PBXFrameworksBuildPhase section */\n\t\t97C146EB1CF9000F007C117D /* Frameworks */ = {\n\t\t\tisa = PBXFrameworksBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXFrameworksBuildPhase section */\n\n/* Begin PBXGroup section */\n\t\t9740EEB11CF90186004384FC /* Flutter */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,\n\t\t\t\t9740EEB21CF90195004384FC /* Debug.xcconfig */,\n\t\t\t\t7AFA3C8E1D35360C0083082E /* Release.xcconfig */,\n\t\t\t\t9740EEB31CF90195004384FC /* Generated.xcconfig */,\n\t\t\t);\n\t\t\tname = Flutter;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t97C146E51CF9000F007C117D = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t9740EEB11CF90186004384FC /* Flutter */,\n\t\t\t\t97C146F01CF9000F007C117D /* Runner */,\n\t\t\t\t97C146EF1CF9000F007C117D /* Products */,\n\t\t\t);\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t97C146EF1CF9000F007C117D /* Products */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t97C146EE1CF9000F007C117D /* Runner.app */,\n\t\t\t);\n\t\t\tname = Products;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t97C146F01CF9000F007C117D /* Runner */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t97C146FA1CF9000F007C117D /* Main.storyboard */,\n\t\t\t\t97C146FD1CF9000F007C117D /* Assets.xcassets */,\n\t\t\t\t97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,\n\t\t\t\t97C147021CF9000F007C117D /* Info.plist */,\n\t\t\t\t1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,\n\t\t\t\t1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,\n\t\t\t\t74858FAE1ED2DC5600515810 /* AppDelegate.swift */,\n\t\t\t\t74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,\n\t\t\t);\n\t\t\tpath = Runner;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n/* End PBXGroup section */\n\n/* Begin PBXNativeTarget section */\n\t\t97C146ED1CF9000F007C117D /* Runner */ = {\n\t\t\tisa = PBXNativeTarget;\n\t\t\tbuildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget \"Runner\" */;\n\t\t\tbuildPhases = (\n\t\t\t\t9740EEB61CF901F6004384FC /* Run Script */,\n\t\t\t\t97C146EA1CF9000F007C117D /* Sources */,\n\t\t\t\t97C146EB1CF9000F007C117D /* Frameworks */,\n\t\t\t\t97C146EC1CF9000F007C117D /* Resources */,\n\t\t\t\t9705A1C41CF9048500538489 /* Embed Frameworks */,\n\t\t\t\t3B06AD1E1E4923F5004D2608 /* Thin Binary */,\n\t\t\t);\n\t\t\tbuildRules = (\n\t\t\t);\n\t\t\tdependencies = (\n\t\t\t);\n\t\t\tname = Runner;\n\t\t\tproductName = Runner;\n\t\t\tproductReference = 97C146EE1CF9000F007C117D /* Runner.app */;\n\t\t\tproductType = \"com.apple.product-type.application\";\n\t\t};\n/* End PBXNativeTarget section */\n\n/* Begin PBXProject section */\n\t\t97C146E61CF9000F007C117D /* Project object */ = {\n\t\t\tisa = PBXProject;\n\t\t\tattributes = {\n\t\t\t\tLastUpgradeCheck = 1510;\n\t\t\t\tORGANIZATIONNAME = \"\";\n\t\t\t\tTargetAttributes = {\n\t\t\t\t\t97C146ED1CF9000F007C117D = {\n\t\t\t\t\t\tCreatedOnToolsVersion = 7.3.1;\n\t\t\t\t\t\tLastSwiftMigration = 1100;\n\t\t\t\t\t};\n\t\t\t\t};\n\t\t\t};\n\t\t\tbuildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject \"Runner\" */;\n\t\t\tcompatibilityVersion = \"Xcode 9.3\";\n\t\t\tdevelopmentRegion = en;\n\t\t\thasScannedForEncodings = 0;\n\t\t\tknownRegions = (\n\t\t\t\ten,\n\t\t\t\tBase,\n\t\t\t);\n\t\t\tmainGroup = 97C146E51CF9000F007C117D;\n\t\t\tproductRefGroup = 97C146EF1CF9000F007C117D /* Products */;\n\t\t\tprojectDirPath = \"\";\n\t\t\tprojectRoot = \"\";\n\t\t\ttargets = (\n\t\t\t\t97C146ED1CF9000F007C117D /* Runner */,\n\t\t\t);\n\t\t};\n/* End PBXProject section */\n\n/* Begin PBXResourcesBuildPhase section */\n\t\t97C146EC1CF9000F007C117D /* Resources */ = {\n\t\t\tisa = PBXResourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,\n\t\t\t\t3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,\n\t\t\t\t97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,\n\t\t\t\t97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXResourcesBuildPhase section */\n\n/* Begin PBXShellScriptBuildPhase section */\n\t\t3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {\n\t\t\tisa = PBXShellScriptBuildPhase;\n\t\t\talwaysOutOfDate = 1;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\tinputPaths = (\n\t\t\t\t\"${TARGET_BUILD_DIR}/${INFOPLIST_PATH}\",\n\t\t\t);\n\t\t\tname = \"Thin Binary\";\n\t\t\toutputPaths = (\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t\tshellPath = /bin/sh;\n\t\t\tshellScript = \"/bin/sh \\\"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\\\" embed_and_thin\";\n\t\t};\n\t\t9740EEB61CF901F6004384FC /* Run Script */ = {\n\t\t\tisa = PBXShellScriptBuildPhase;\n\t\t\talwaysOutOfDate = 1;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\tinputPaths = (\n\t\t\t);\n\t\t\tname = \"Run Script\";\n\t\t\toutputPaths = (\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t\tshellPath = /bin/sh;\n\t\t\tshellScript = \"/bin/sh \\\"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\\\" build\";\n\t\t};\n/* End PBXShellScriptBuildPhase section */\n\n/* Begin PBXSourcesBuildPhase section */\n\t\t97C146EA1CF9000F007C117D /* Sources */ = {\n\t\t\tisa = PBXSourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,\n\t\t\t\t1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXSourcesBuildPhase section */\n\n/* Begin PBXVariantGroup section */\n\t\t97C146FA1CF9000F007C117D /* Main.storyboard */ = {\n\t\t\tisa = PBXVariantGroup;\n\t\t\tchildren = (\n\t\t\t\t97C146FB1CF9000F007C117D /* Base */,\n\t\t\t);\n\t\t\tname = Main.storyboard;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {\n\t\t\tisa = PBXVariantGroup;\n\t\t\tchildren = (\n\t\t\t\t97C147001CF9000F007C117D /* Base */,\n\t\t\t);\n\t\t\tname = LaunchScreen.storyboard;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n/* End PBXVariantGroup section */\n\n/* Begin XCBuildConfiguration section */\n\t\t249021D3217E4FDB00AE95B9 /* Profile */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tALWAYS_SEARCH_USER_PATHS = NO;\n\t\t\t\tCLANG_ANALYZER_NONNULL = YES;\n\t\t\t\tCLANG_CXX_LANGUAGE_STANDARD = \"gnu++0x\";\n\t\t\t\tCLANG_CXX_LIBRARY = \"libc++\";\n\t\t\t\tCLANG_ENABLE_MODULES = YES;\n\t\t\t\tCLANG_ENABLE_OBJC_ARC = YES;\n\t\t\t\tCLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;\n\t\t\t\tCLANG_WARN_BOOL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_COMMA = YES;\n\t\t\t\tCLANG_WARN_CONSTANT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;\n\t\t\t\tCLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;\n\t\t\t\tCLANG_WARN_EMPTY_BODY = YES;\n\t\t\t\tCLANG_WARN_ENUM_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_INFINITE_RECURSION = YES;\n\t\t\t\tCLANG_WARN_INT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;\n\t\t\t\tCLANG_WARN_OBJC_LITERAL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;\n\t\t\t\tCLANG_WARN_RANGE_LOOP_ANALYSIS = YES;\n\t\t\t\tCLANG_WARN_STRICT_PROTOTYPES = YES;\n\t\t\t\tCLANG_WARN_SUSPICIOUS_MOVE = YES;\n\t\t\t\tCLANG_WARN_UNREACHABLE_CODE = YES;\n\t\t\t\tCLANG_WARN__DUPLICATE_METHOD_MATCH = YES;\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=iphoneos*]\" = \"iPhone Developer\";\n\t\t\t\tCOPY_PHASE_STRIP = NO;\n\t\t\t\tDEBUG_INFORMATION_FORMAT = \"dwarf-with-dsym\";\n\t\t\t\tENABLE_NS_ASSERTIONS = NO;\n\t\t\t\tENABLE_STRICT_OBJC_MSGSEND = YES;\n\t\t\t\tGCC_C_LANGUAGE_STANDARD = gnu99;\n\t\t\t\tGCC_NO_COMMON_BLOCKS = YES;\n\t\t\t\tGCC_WARN_64_TO_32_BIT_CONVERSION = YES;\n\t\t\t\tGCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;\n\t\t\t\tGCC_WARN_UNDECLARED_SELECTOR = YES;\n\t\t\t\tGCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;\n\t\t\t\tGCC_WARN_UNUSED_FUNCTION = YES;\n\t\t\t\tGCC_WARN_UNUSED_VARIABLE = YES;\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 12.0;\n\t\t\t\tMTL_ENABLE_DEBUG_INFO = NO;\n\t\t\t\tSDKROOT = iphoneos;\n\t\t\t\tSUPPORTED_PLATFORMS = iphoneos;\n\t\t\t\tTARGETED_DEVICE_FAMILY = \"1,2\";\n\t\t\t\tVALIDATE_PRODUCT = YES;\n\t\t\t};\n\t\t\tname = Profile;\n\t\t};\n\t\t249021D4217E4FDB00AE95B9 /* Profile */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\tASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;\n\t\t\t\tCLANG_ENABLE_MODULES = YES;\n\t\t\t\tCURRENT_PROJECT_VERSION = \"$(FLUTTER_BUILD_NUMBER)\";\n\t\t\t\tENABLE_BITCODE = NO;\n\t\t\t\tINFOPLIST_FILE = Runner/Info.plist;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = \"$(inherited) @executable_path/Frameworks\";\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = com.example.example;\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tSWIFT_OBJC_BRIDGING_HEADER = \"Runner/Runner-Bridging-Header.h\";\n\t\t\t\tSWIFT_VERSION = 5.0;\n\t\t\t\tVERSIONING_SYSTEM = \"apple-generic\";\n\t\t\t};\n\t\t\tname = Profile;\n\t\t};\n\t\t97C147031CF9000F007C117D /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tALWAYS_SEARCH_USER_PATHS = NO;\n\t\t\t\tCLANG_ANALYZER_NONNULL = YES;\n\t\t\t\tCLANG_CXX_LANGUAGE_STANDARD = \"gnu++0x\";\n\t\t\t\tCLANG_CXX_LIBRARY = \"libc++\";\n\t\t\t\tCLANG_ENABLE_MODULES = YES;\n\t\t\t\tCLANG_ENABLE_OBJC_ARC = YES;\n\t\t\t\tCLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;\n\t\t\t\tCLANG_WARN_BOOL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_COMMA = YES;\n\t\t\t\tCLANG_WARN_CONSTANT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;\n\t\t\t\tCLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;\n\t\t\t\tCLANG_WARN_EMPTY_BODY = YES;\n\t\t\t\tCLANG_WARN_ENUM_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_INFINITE_RECURSION = YES;\n\t\t\t\tCLANG_WARN_INT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;\n\t\t\t\tCLANG_WARN_OBJC_LITERAL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;\n\t\t\t\tCLANG_WARN_RANGE_LOOP_ANALYSIS = YES;\n\t\t\t\tCLANG_WARN_STRICT_PROTOTYPES = YES;\n\t\t\t\tCLANG_WARN_SUSPICIOUS_MOVE = YES;\n\t\t\t\tCLANG_WARN_UNREACHABLE_CODE = YES;\n\t\t\t\tCLANG_WARN__DUPLICATE_METHOD_MATCH = YES;\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=iphoneos*]\" = \"iPhone Developer\";\n\t\t\t\tCOPY_PHASE_STRIP = NO;\n\t\t\t\tDEBUG_INFORMATION_FORMAT = dwarf;\n\t\t\t\tENABLE_STRICT_OBJC_MSGSEND = YES;\n\t\t\t\tENABLE_TESTABILITY = YES;\n\t\t\t\tGCC_C_LANGUAGE_STANDARD = gnu99;\n\t\t\t\tGCC_DYNAMIC_NO_PIC = NO;\n\t\t\t\tGCC_NO_COMMON_BLOCKS = YES;\n\t\t\t\tGCC_OPTIMIZATION_LEVEL = 0;\n\t\t\t\tGCC_PREPROCESSOR_DEFINITIONS = (\n\t\t\t\t\t\"DEBUG=1\",\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t);\n\t\t\t\tGCC_WARN_64_TO_32_BIT_CONVERSION = YES;\n\t\t\t\tGCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;\n\t\t\t\tGCC_WARN_UNDECLARED_SELECTOR = YES;\n\t\t\t\tGCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;\n\t\t\t\tGCC_WARN_UNUSED_FUNCTION = YES;\n\t\t\t\tGCC_WARN_UNUSED_VARIABLE = YES;\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 12.0;\n\t\t\t\tMTL_ENABLE_DEBUG_INFO = YES;\n\t\t\t\tONLY_ACTIVE_ARCH = YES;\n\t\t\t\tSDKROOT = iphoneos;\n\t\t\t\tTARGETED_DEVICE_FAMILY = \"1,2\";\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\t97C147041CF9000F007C117D /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tALWAYS_SEARCH_USER_PATHS = NO;\n\t\t\t\tCLANG_ANALYZER_NONNULL = YES;\n\t\t\t\tCLANG_CXX_LANGUAGE_STANDARD = \"gnu++0x\";\n\t\t\t\tCLANG_CXX_LIBRARY = \"libc++\";\n\t\t\t\tCLANG_ENABLE_MODULES = YES;\n\t\t\t\tCLANG_ENABLE_OBJC_ARC = YES;\n\t\t\t\tCLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;\n\t\t\t\tCLANG_WARN_BOOL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_COMMA = YES;\n\t\t\t\tCLANG_WARN_CONSTANT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;\n\t\t\t\tCLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;\n\t\t\t\tCLANG_WARN_EMPTY_BODY = YES;\n\t\t\t\tCLANG_WARN_ENUM_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_INFINITE_RECURSION = YES;\n\t\t\t\tCLANG_WARN_INT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;\n\t\t\t\tCLANG_WARN_OBJC_LITERAL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;\n\t\t\t\tCLANG_WARN_RANGE_LOOP_ANALYSIS = YES;\n\t\t\t\tCLANG_WARN_STRICT_PROTOTYPES = YES;\n\t\t\t\tCLANG_WARN_SUSPICIOUS_MOVE = YES;\n\t\t\t\tCLANG_WARN_UNREACHABLE_CODE = YES;\n\t\t\t\tCLANG_WARN__DUPLICATE_METHOD_MATCH = YES;\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=iphoneos*]\" = \"iPhone Developer\";\n\t\t\t\tCOPY_PHASE_STRIP = NO;\n\t\t\t\tDEBUG_INFORMATION_FORMAT = \"dwarf-with-dsym\";\n\t\t\t\tENABLE_NS_ASSERTIONS = NO;\n\t\t\t\tENABLE_STRICT_OBJC_MSGSEND = YES;\n\t\t\t\tGCC_C_LANGUAGE_STANDARD = gnu99;\n\t\t\t\tGCC_NO_COMMON_BLOCKS = YES;\n\t\t\t\tGCC_WARN_64_TO_32_BIT_CONVERSION = YES;\n\t\t\t\tGCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;\n\t\t\t\tGCC_WARN_UNDECLARED_SELECTOR = YES;\n\t\t\t\tGCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;\n\t\t\t\tGCC_WARN_UNUSED_FUNCTION = YES;\n\t\t\t\tGCC_WARN_UNUSED_VARIABLE = YES;\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 12.0;\n\t\t\t\tMTL_ENABLE_DEBUG_INFO = NO;\n\t\t\t\tSDKROOT = iphoneos;\n\t\t\t\tSUPPORTED_PLATFORMS = iphoneos;\n\t\t\t\tSWIFT_OPTIMIZATION_LEVEL = \"-Owholemodule\";\n\t\t\t\tTARGETED_DEVICE_FAMILY = \"1,2\";\n\t\t\t\tVALIDATE_PRODUCT = YES;\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n\t\t97C147061CF9000F007C117D /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\tASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;\n\t\t\t\tCLANG_ENABLE_MODULES = YES;\n\t\t\t\tCURRENT_PROJECT_VERSION = \"$(FLUTTER_BUILD_NUMBER)\";\n\t\t\t\tENABLE_BITCODE = NO;\n\t\t\t\tINFOPLIST_FILE = Runner/Info.plist;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = \"$(inherited) @executable_path/Frameworks\";\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = com.example.example;\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tSWIFT_OBJC_BRIDGING_HEADER = \"Runner/Runner-Bridging-Header.h\";\n\t\t\t\tSWIFT_OPTIMIZATION_LEVEL = \"-Onone\";\n\t\t\t\tSWIFT_VERSION = 5.0;\n\t\t\t\tVERSIONING_SYSTEM = \"apple-generic\";\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\t97C147071CF9000F007C117D /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\tASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;\n\t\t\t\tCLANG_ENABLE_MODULES = YES;\n\t\t\t\tCURRENT_PROJECT_VERSION = \"$(FLUTTER_BUILD_NUMBER)\";\n\t\t\t\tENABLE_BITCODE = NO;\n\t\t\t\tINFOPLIST_FILE = Runner/Info.plist;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = \"$(inherited) @executable_path/Frameworks\";\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = com.example.example;\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tSWIFT_OBJC_BRIDGING_HEADER = \"Runner/Runner-Bridging-Header.h\";\n\t\t\t\tSWIFT_VERSION = 5.0;\n\t\t\t\tVERSIONING_SYSTEM = \"apple-generic\";\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n/* End XCBuildConfiguration section */\n\n/* Begin XCConfigurationList section */\n\t\t97C146E91CF9000F007C117D /* Build configuration list for PBXProject \"Runner\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\t97C147031CF9000F007C117D /* Debug */,\n\t\t\t\t97C147041CF9000F007C117D /* Release */,\n\t\t\t\t249021D3217E4FDB00AE95B9 /* Profile */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n\t\t97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget \"Runner\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\t97C147061CF9000F007C117D /* Debug */,\n\t\t\t\t97C147071CF9000F007C117D /* Release */,\n\t\t\t\t249021D4217E4FDB00AE95B9 /* Profile */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n/* End XCConfigurationList section */\n\t};\n\trootObject = 97C146E61CF9000F007C117D /* Project object */;\n}\n"
  },
  {
    "path": "example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Workspace\n   version = \"1.0\">\n   <FileRef\n      location = \"self:\">\n   </FileRef>\n</Workspace>\n"
  },
  {
    "path": "example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>IDEDidComputeMac32BitWarning</key>\n\t<true/>\n</dict>\n</plist>\n"
  },
  {
    "path": "example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>PreviewsEnabled</key>\n\t<false/>\n</dict>\n</plist>\n"
  },
  {
    "path": "example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Scheme\n   LastUpgradeVersion = \"1510\"\n   version = \"1.3\">\n   <BuildAction\n      parallelizeBuildables = \"YES\"\n      buildImplicitDependencies = \"YES\">\n      <BuildActionEntries>\n         <BuildActionEntry\n            buildForTesting = \"YES\"\n            buildForRunning = \"YES\"\n            buildForProfiling = \"YES\"\n            buildForArchiving = \"YES\"\n            buildForAnalyzing = \"YES\">\n            <BuildableReference\n               BuildableIdentifier = \"primary\"\n               BlueprintIdentifier = \"97C146ED1CF9000F007C117D\"\n               BuildableName = \"Runner.app\"\n               BlueprintName = \"Runner\"\n               ReferencedContainer = \"container:Runner.xcodeproj\">\n            </BuildableReference>\n         </BuildActionEntry>\n      </BuildActionEntries>\n   </BuildAction>\n   <TestAction\n      buildConfiguration = \"Debug\"\n      selectedDebuggerIdentifier = \"Xcode.DebuggerFoundation.Debugger.LLDB\"\n      selectedLauncherIdentifier = \"Xcode.DebuggerFoundation.Launcher.LLDB\"\n      shouldUseLaunchSchemeArgsEnv = \"YES\">\n      <Testables>\n      </Testables>\n      <MacroExpansion>\n         <BuildableReference\n            BuildableIdentifier = \"primary\"\n            BlueprintIdentifier = \"97C146ED1CF9000F007C117D\"\n            BuildableName = \"Runner.app\"\n            BlueprintName = \"Runner\"\n            ReferencedContainer = \"container:Runner.xcodeproj\">\n         </BuildableReference>\n      </MacroExpansion>\n      <AdditionalOptions>\n      </AdditionalOptions>\n   </TestAction>\n   <LaunchAction\n      buildConfiguration = \"Debug\"\n      selectedDebuggerIdentifier = \"Xcode.DebuggerFoundation.Debugger.LLDB\"\n      selectedLauncherIdentifier = \"Xcode.DebuggerFoundation.Launcher.LLDB\"\n      launchStyle = \"0\"\n      useCustomWorkingDirectory = \"NO\"\n      ignoresPersistentStateOnLaunch = \"NO\"\n      debugDocumentVersioning = \"YES\"\n      debugServiceExtension = \"internal\"\n      allowLocationSimulation = \"YES\">\n      <BuildableProductRunnable\n         runnableDebuggingMode = \"0\">\n         <BuildableReference\n            BuildableIdentifier = \"primary\"\n            BlueprintIdentifier = \"97C146ED1CF9000F007C117D\"\n            BuildableName = \"Runner.app\"\n            BlueprintName = \"Runner\"\n            ReferencedContainer = \"container:Runner.xcodeproj\">\n         </BuildableReference>\n      </BuildableProductRunnable>\n      <AdditionalOptions>\n      </AdditionalOptions>\n   </LaunchAction>\n   <ProfileAction\n      buildConfiguration = \"Profile\"\n      shouldUseLaunchSchemeArgsEnv = \"YES\"\n      savedToolIdentifier = \"\"\n      useCustomWorkingDirectory = \"NO\"\n      debugDocumentVersioning = \"YES\">\n      <BuildableProductRunnable\n         runnableDebuggingMode = \"0\">\n         <BuildableReference\n            BuildableIdentifier = \"primary\"\n            BlueprintIdentifier = \"97C146ED1CF9000F007C117D\"\n            BuildableName = \"Runner.app\"\n            BlueprintName = \"Runner\"\n            ReferencedContainer = \"container:Runner.xcodeproj\">\n         </BuildableReference>\n      </BuildableProductRunnable>\n   </ProfileAction>\n   <AnalyzeAction\n      buildConfiguration = \"Debug\">\n   </AnalyzeAction>\n   <ArchiveAction\n      buildConfiguration = \"Release\"\n      revealArchiveInOrganizer = \"YES\">\n   </ArchiveAction>\n</Scheme>\n"
  },
  {
    "path": "example/ios/Runner.xcworkspace/contents.xcworkspacedata",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Workspace\n   version = \"1.0\">\n   <FileRef\n      location = \"group:Runner.xcodeproj\">\n   </FileRef>\n</Workspace>\n"
  },
  {
    "path": "example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>IDEDidComputeMac32BitWarning</key>\n\t<true/>\n</dict>\n</plist>\n"
  },
  {
    "path": "example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>PreviewsEnabled</key>\n\t<false/>\n</dict>\n</plist>\n"
  },
  {
    "path": "example/lib/main.dart",
    "content": "import 'dart:typed_data';\n\nimport 'package:crop_your_image/crop_your_image.dart';\nimport 'package:flutter/material.dart';\nimport 'package:flutter/services.dart' show rootBundle;\n\nvoid main() {\n  runApp(MyApp());\n}\n\nclass MyApp extends StatefulWidget {\n  @override\n  _MyAppState createState() => _MyAppState();\n}\n\nclass _MyAppState extends State<MyApp> {\n  @override\n  Widget build(BuildContext context) {\n    return MaterialApp(\n      debugShowCheckedModeBanner: false,\n      theme: ThemeData(\n        primarySwatch: Colors.blue,\n      ),\n      home: Scaffold(\n        appBar: AppBar(\n          title: Text('Crop Your Image Demo'),\n        ),\n        body: CropSample(),\n      ),\n    );\n  }\n}\n\nclass CropSample extends StatefulWidget {\n  @override\n  _CropSampleState createState() => _CropSampleState();\n}\n\nclass _CropSampleState extends State<CropSample> {\n  static const _images = const [\n    'assets/images/city.png',\n    'assets/images/lake.png',\n    'assets/images/train.png',\n    'assets/images/turtois.png',\n  ];\n\n  final _cropController = CropController();\n  final _imageDataList = <Uint8List>[];\n\n  var _loadingImage = false;\n  var _currentImage = 0;\n  set currentImage(int value) {\n    setState(() {\n      _currentImage = value;\n    });\n    _cropController.image = _imageDataList[_currentImage];\n  }\n\n  var _isThumbnail = false;\n  var _isCropping = false;\n  var _isCircleUi = false;\n  Uint8List? _croppedData;\n  var _statusText = '';\n  var _isOverlayActive = true;\n  var _undoEnabled = false;\n  var _redoEnabled = false;\n\n  @override\n  void initState() {\n    _loadAllImages();\n    super.initState();\n  }\n\n  Future<void> _loadAllImages() async {\n    setState(() {\n      _loadingImage = true;\n    });\n    for (final assetName in _images) {\n      _imageDataList.add(await _load(assetName));\n    }\n    setState(() {\n      _loadingImage = false;\n    });\n  }\n\n  Future<Uint8List> _load(String assetName) async {\n    final assetData = await rootBundle.load(assetName);\n    return assetData.buffer.asUint8List();\n  }\n\n  @override\n  Widget build(BuildContext context) {\n    return Container(\n      width: double.infinity,\n      height: double.infinity,\n      child: Center(\n        child: Visibility(\n          visible: !_loadingImage && !_isCropping,\n          child: Column(\n            children: [\n              if (_imageDataList.length >= 4)\n                Padding(\n                  padding: const EdgeInsets.all(16),\n                  child: Row(\n                    children: [\n                      _buildThumbnail(_imageDataList[0]),\n                      const SizedBox(width: 16),\n                      _buildThumbnail(_imageDataList[1]),\n                      const SizedBox(width: 16),\n                      _buildThumbnail(_imageDataList[2]),\n                      const SizedBox(width: 16),\n                      _buildThumbnail(_imageDataList[3]),\n                    ],\n                  ),\n                ),\n              Expanded(\n                child: Visibility(\n                  visible: _croppedData == null,\n                  child: Stack(\n                    children: [\n                      if (_imageDataList.isNotEmpty) ...[\n                        Crop(\n                          willUpdateScale: (newScale) => newScale < 5,\n                          controller: _cropController,\n                          image: _imageDataList[_currentImage],\n                          onCropped: (result) {\n                            switch (result) {\n                              case CropSuccess(:final croppedImage):\n                                _croppedData = croppedImage;\n                              case CropFailure(:final cause):\n                                showDialog(\n                                  context: context,\n                                  builder: (context) => AlertDialog(\n                                    title: Text('Error'),\n                                    content:\n                                        Text('Failed to crop image: ${cause}'),\n                                    actions: [\n                                      TextButton(\n                                          onPressed: () =>\n                                              Navigator.pop(context),\n                                          child: Text('OK')),\n                                    ],\n                                  ),\n                                );\n                            }\n                            setState(() => _isCropping = false);\n                          },\n                          withCircleUi: _isCircleUi,\n                          onStatusChanged: (status) => setState(() {\n                            _statusText = <CropStatus, String>{\n                                  CropStatus.nothing: 'Crop has no image data',\n                                  CropStatus.loading:\n                                      'Crop is now loading given image',\n                                  CropStatus.ready: 'Crop is now ready!',\n                                  CropStatus.cropping:\n                                      'Crop is now cropping image',\n                                }[status] ??\n                                '';\n                          }),\n                          maskColor: _isThumbnail ? Colors.white : null,\n                          cornerDotBuilder: (size, edgeAlignment) =>\n                              const SizedBox.shrink(),\n                          interactive: true,\n                          fixCropRect: true,\n                          radius: 20,\n                          initialRectBuilder: InitialRectBuilder.withBuilder(\n                            (viewportRect, imageRect) {\n                              return Rect.fromLTRB(\n                                viewportRect.left + 24,\n                                viewportRect.top + 24,\n                                viewportRect.right - 24,\n                                viewportRect.bottom - 24,\n                              );\n                            },\n                          ),\n                          onHistoryChanged: (history) => setState(() {\n                            _undoEnabled = history.undoCount > 0;\n                            _redoEnabled = history.redoCount > 0;\n                          }),\n                          overlayBuilder: _isOverlayActive\n                              ? (context, rect) {\n                                  final overlay = CustomPaint(\n                                    painter: GridPainter(),\n                                  );\n                                  return _isCircleUi\n                                      ? ClipOval(\n                                          child: overlay,\n                                        )\n                                      : overlay;\n                                }\n                              : null,\n                        ),\n                        IgnorePointer(\n                          child: Padding(\n                            padding: const EdgeInsets.all(24),\n                            child: Container(\n                              decoration: BoxDecoration(\n                                border:\n                                    Border.all(width: 4, color: Colors.white),\n                                borderRadius: BorderRadius.circular(20),\n                              ),\n                            ),\n                          ),\n                        ),\n                      ],\n                      Positioned(\n                        right: 16,\n                        bottom: 16,\n                        child: GestureDetector(\n                          onTapDown: (_) => setState(() => _isThumbnail = true),\n                          onTapUp: (_) => setState(() => _isThumbnail = false),\n                          child: CircleAvatar(\n                            backgroundColor: _isThumbnail\n                                ? Colors.blue.shade50\n                                : Colors.blue,\n                            child: Center(\n                              child: Icon(Icons.crop_free_rounded),\n                            ),\n                          ),\n                        ),\n                      ),\n                    ],\n                  ),\n                  replacement: Center(\n                    child: _croppedData == null\n                        ? SizedBox.shrink()\n                        : Image.memory(_croppedData!),\n                  ),\n                ),\n              ),\n              if (_croppedData == null)\n                Padding(\n                  padding: const EdgeInsets.all(16),\n                  child: Column(\n                    children: [\n                      Row(\n                        mainAxisAlignment: MainAxisAlignment.center,\n                        children: [\n                          IconButton(\n                            icon: Icon(Icons.crop_7_5),\n                            onPressed: () {\n                              _isCircleUi = false;\n                              _cropController.aspectRatio = 16 / 4;\n                            },\n                          ),\n                          IconButton(\n                            icon: Icon(Icons.crop_16_9),\n                            onPressed: () {\n                              _isCircleUi = false;\n                              _cropController.aspectRatio = 16 / 9;\n                            },\n                          ),\n                          IconButton(\n                            icon: Icon(Icons.crop_5_4),\n                            onPressed: () {\n                              _isCircleUi = false;\n                              _cropController.aspectRatio = 4 / 3;\n                            },\n                          ),\n                          IconButton(\n                            icon: Icon(Icons.crop_square),\n                            onPressed: () {\n                              _isCircleUi = false;\n                              _cropController\n                                ..withCircleUi = false\n                                ..aspectRatio = 1;\n                            },\n                          ),\n                          IconButton(\n                              icon: Icon(Icons.circle),\n                              onPressed: () {\n                                _isCircleUi = true;\n                                _cropController.withCircleUi = true;\n                              }),\n                        ],\n                      ),\n                      Row(\n                        mainAxisSize: MainAxisSize.min,\n                        children: [\n                          Text('Show Grid'),\n                          Switch(\n                            value: _isOverlayActive,\n                            onChanged: (value) {\n                              setState(() {\n                                _isOverlayActive = value;\n                              });\n                            },\n                          )\n                        ],\n                      ),\n                      const SizedBox(height: 16),\n                      Row(\n                        mainAxisAlignment: MainAxisAlignment.center,\n                        children: [\n                          ElevatedButton(\n                            onPressed: _undoEnabled\n                                ? () => _cropController.undo()\n                                : null,\n                            child: Text('UNDO'),\n                          ),\n                          const SizedBox(width: 16),\n                          ElevatedButton(\n                            onPressed: _redoEnabled\n                                ? () => _cropController.redo()\n                                : null,\n                            child: Text('REDO'),\n                          ),\n                        ],\n                      ),\n                      const SizedBox(height: 16),\n                      Container(\n                        width: double.infinity,\n                        child: ElevatedButton(\n                          onPressed: () {\n                            setState(() {\n                              _isCropping = true;\n                            });\n                            _isCircleUi\n                                ? _cropController.cropCircle()\n                                : _cropController.crop();\n                          },\n                          child: Padding(\n                            padding: const EdgeInsets.symmetric(vertical: 16),\n                            child: Text('CROP IT!'),\n                          ),\n                        ),\n                      ),\n                    ],\n                  ),\n                ),\n              const SizedBox(height: 16),\n              Text(_statusText),\n              const SizedBox(height: 16),\n            ],\n          ),\n          replacement: const CircularProgressIndicator(),\n        ),\n      ),\n    );\n  }\n\n  Expanded _buildThumbnail(Uint8List data) {\n    final index = _imageDataList.indexOf(data);\n    return Expanded(\n      child: InkWell(\n        onTap: () {\n          _croppedData = null;\n          currentImage = index;\n        },\n        child: Container(\n          height: 100,\n          decoration: BoxDecoration(\n            border: index == _currentImage\n                ? Border.all(\n                    width: 8,\n                    color: Colors.blue,\n                  )\n                : null,\n          ),\n          child: Image.memory(\n            data,\n            fit: BoxFit.cover,\n          ),\n        ),\n      ),\n    );\n  }\n}\n\nclass GridPainter extends CustomPainter {\n  final divisions = 2;\n  final strokeWidth = 1.0;\n  final Color color = Colors.black54;\n\n  @override\n  void paint(Canvas canvas, Size size) {\n    final paint = Paint()\n      ..strokeWidth = strokeWidth\n      ..color = color;\n\n    final spacing = size / (divisions + 1);\n    for (var i = 1; i < divisions + 1; i++) {\n      // draw vertical line\n      canvas.drawLine(\n        Offset(spacing.width * i, 0),\n        Offset(spacing.width * i, size.height),\n        paint,\n      );\n\n      // draw horizontal line\n      canvas.drawLine(\n        Offset(0, spacing.height * i),\n        Offset(size.width, spacing.height * i),\n        paint,\n      );\n    }\n  }\n\n  @override\n  bool shouldRepaint(GridPainter oldDelegate) => false;\n}\n"
  },
  {
    "path": "example/lib/my_cropper.dart",
    "content": "import 'dart:ui';\n\nimport 'package:crop_your_image/crop_your_image.dart';\nimport 'package:image/image.dart' as image hide ImageFormat;\n\nclass MyImageCropper extends ImageCropper<image.Image> {\n  const MyImageCropper();\n  @override\n  RectValidator<image.Image> get rectValidator => defaultRectValidator;\n\n  @override\n  RectCropper<image.Image> get rectCropper => _rectCropper;\n\n  @override\n  CircleCropper<image.Image> get circleCropper => _circleCropper;\n}\n\nfinal RectCropper<image.Image> _rectCropper = (\n  image.Image original, {\n  required Offset topLeft,\n  required Size size,\n  required ImageFormat? outputFormat,\n}) {\n  /// crop image with low quality\n  return image.encodeJpg(\n    quality: 10,\n    image.copyCrop(\n      original,\n      x: topLeft.dx.toInt(),\n      y: topLeft.dy.toInt(),\n      width: size.width.toInt(),\n      height: size.height.toInt(),\n    ),\n  );\n};\n\nfinal CircleCropper<image.Image> _circleCropper = (\n  image.Image original, {\n  required Offset center,\n  required double radius,\n  required ImageFormat? outputFormat,\n}) {\n  /// crop image with low quality\n  /// note: jpg can't cropped circle\n  return image.encodeJpg(\n    quality: 10,\n    image.copyCropCircle(\n      original,\n      centerX: center.dx.toInt(),\n      centerY: center.dy.toInt(),\n      radius: radius.toInt(),\n    ),\n  );\n};\n"
  },
  {
    "path": "example/linux/.gitignore",
    "content": "flutter/ephemeral\n"
  },
  {
    "path": "example/linux/CMakeLists.txt",
    "content": "# Project-level configuration.\ncmake_minimum_required(VERSION 3.10)\nproject(runner LANGUAGES CXX)\n\n# The name of the executable created for the application. Change this to change\n# the on-disk name of your application.\nset(BINARY_NAME \"example\")\n# The unique GTK application identifier for this application. See:\n# https://wiki.gnome.org/HowDoI/ChooseApplicationID\nset(APPLICATION_ID \"com.example.example\")\n\n# Explicitly opt in to modern CMake behaviors to avoid warnings with recent\n# versions of CMake.\ncmake_policy(SET CMP0063 NEW)\n\n# Load bundled libraries from the lib/ directory relative to the binary.\nset(CMAKE_INSTALL_RPATH \"$ORIGIN/lib\")\n\n# Root filesystem for cross-building.\nif(FLUTTER_TARGET_PLATFORM_SYSROOT)\n  set(CMAKE_SYSROOT ${FLUTTER_TARGET_PLATFORM_SYSROOT})\n  set(CMAKE_FIND_ROOT_PATH ${CMAKE_SYSROOT})\n  set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)\n  set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)\n  set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)\n  set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)\nendif()\n\n# Define build configuration options.\nif(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)\n  set(CMAKE_BUILD_TYPE \"Debug\" CACHE\n    STRING \"Flutter build mode\" FORCE)\n  set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS\n    \"Debug\" \"Profile\" \"Release\")\nendif()\n\n# Compilation settings that should be applied to most targets.\n#\n# Be cautious about adding new options here, as plugins use this function by\n# default. In most cases, you should add new options to specific targets instead\n# of modifying this function.\nfunction(APPLY_STANDARD_SETTINGS TARGET)\n  target_compile_features(${TARGET} PUBLIC cxx_std_14)\n  target_compile_options(${TARGET} PRIVATE -Wall -Werror)\n  target_compile_options(${TARGET} PRIVATE \"$<$<NOT:$<CONFIG:Debug>>:-O3>\")\n  target_compile_definitions(${TARGET} PRIVATE \"$<$<NOT:$<CONFIG:Debug>>:NDEBUG>\")\nendfunction()\n\n# Flutter library and tool build rules.\nset(FLUTTER_MANAGED_DIR \"${CMAKE_CURRENT_SOURCE_DIR}/flutter\")\nadd_subdirectory(${FLUTTER_MANAGED_DIR})\n\n# System-level dependencies.\nfind_package(PkgConfig REQUIRED)\npkg_check_modules(GTK REQUIRED IMPORTED_TARGET gtk+-3.0)\n\nadd_definitions(-DAPPLICATION_ID=\"${APPLICATION_ID}\")\n\n# Define the application target. To change its name, change BINARY_NAME above,\n# not the value here, or `flutter run` will no longer work.\n#\n# Any new source files that you add to the application should be added here.\nadd_executable(${BINARY_NAME}\n  \"main.cc\"\n  \"my_application.cc\"\n  \"${FLUTTER_MANAGED_DIR}/generated_plugin_registrant.cc\"\n)\n\n# Apply the standard set of build settings. This can be removed for applications\n# that need different build settings.\napply_standard_settings(${BINARY_NAME})\n\n# Add dependency libraries. Add any application-specific dependencies here.\ntarget_link_libraries(${BINARY_NAME} PRIVATE flutter)\ntarget_link_libraries(${BINARY_NAME} PRIVATE PkgConfig::GTK)\n\n# Run the Flutter tool portions of the build. This must not be removed.\nadd_dependencies(${BINARY_NAME} flutter_assemble)\n\n# Only the install-generated bundle's copy of the executable will launch\n# correctly, since the resources must in the right relative locations. To avoid\n# people trying to run the unbundled copy, put it in a subdirectory instead of\n# the default top-level location.\nset_target_properties(${BINARY_NAME}\n  PROPERTIES\n  RUNTIME_OUTPUT_DIRECTORY \"${CMAKE_BINARY_DIR}/intermediates_do_not_run\"\n)\n\n\n# Generated plugin build rules, which manage building the plugins and adding\n# them to the application.\ninclude(flutter/generated_plugins.cmake)\n\n\n# === Installation ===\n# By default, \"installing\" just makes a relocatable bundle in the build\n# directory.\nset(BUILD_BUNDLE_DIR \"${PROJECT_BINARY_DIR}/bundle\")\nif(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)\n  set(CMAKE_INSTALL_PREFIX \"${BUILD_BUNDLE_DIR}\" CACHE PATH \"...\" FORCE)\nendif()\n\n# Start with a clean build bundle directory every time.\ninstall(CODE \"\n  file(REMOVE_RECURSE \\\"${BUILD_BUNDLE_DIR}/\\\")\n  \" COMPONENT Runtime)\n\nset(INSTALL_BUNDLE_DATA_DIR \"${CMAKE_INSTALL_PREFIX}/data\")\nset(INSTALL_BUNDLE_LIB_DIR \"${CMAKE_INSTALL_PREFIX}/lib\")\n\ninstall(TARGETS ${BINARY_NAME} RUNTIME DESTINATION \"${CMAKE_INSTALL_PREFIX}\"\n  COMPONENT Runtime)\n\ninstall(FILES \"${FLUTTER_ICU_DATA_FILE}\" DESTINATION \"${INSTALL_BUNDLE_DATA_DIR}\"\n  COMPONENT Runtime)\n\ninstall(FILES \"${FLUTTER_LIBRARY}\" DESTINATION \"${INSTALL_BUNDLE_LIB_DIR}\"\n  COMPONENT Runtime)\n\nforeach(bundled_library ${PLUGIN_BUNDLED_LIBRARIES})\n  install(FILES \"${bundled_library}\"\n    DESTINATION \"${INSTALL_BUNDLE_LIB_DIR}\"\n    COMPONENT Runtime)\nendforeach(bundled_library)\n\n# Copy the native assets provided by the build.dart from all packages.\nset(NATIVE_ASSETS_DIR \"${PROJECT_BUILD_DIR}native_assets/linux/\")\ninstall(DIRECTORY \"${NATIVE_ASSETS_DIR}\"\n   DESTINATION \"${INSTALL_BUNDLE_LIB_DIR}\"\n   COMPONENT Runtime)\n\n# Fully re-copy the assets directory on each build to avoid having stale files\n# from a previous install.\nset(FLUTTER_ASSET_DIR_NAME \"flutter_assets\")\ninstall(CODE \"\n  file(REMOVE_RECURSE \\\"${INSTALL_BUNDLE_DATA_DIR}/${FLUTTER_ASSET_DIR_NAME}\\\")\n  \" COMPONENT Runtime)\ninstall(DIRECTORY \"${PROJECT_BUILD_DIR}/${FLUTTER_ASSET_DIR_NAME}\"\n  DESTINATION \"${INSTALL_BUNDLE_DATA_DIR}\" COMPONENT Runtime)\n\n# Install the AOT library on non-Debug builds only.\nif(NOT CMAKE_BUILD_TYPE MATCHES \"Debug\")\n  install(FILES \"${AOT_LIBRARY}\" DESTINATION \"${INSTALL_BUNDLE_LIB_DIR}\"\n    COMPONENT Runtime)\nendif()\n"
  },
  {
    "path": "example/linux/flutter/CMakeLists.txt",
    "content": "# This file controls Flutter-level build steps. It should not be edited.\ncmake_minimum_required(VERSION 3.10)\n\nset(EPHEMERAL_DIR \"${CMAKE_CURRENT_SOURCE_DIR}/ephemeral\")\n\n# Configuration provided via flutter tool.\ninclude(${EPHEMERAL_DIR}/generated_config.cmake)\n\n# TODO: Move the rest of this into files in ephemeral. See\n# https://github.com/flutter/flutter/issues/57146.\n\n# Serves the same purpose as list(TRANSFORM ... PREPEND ...),\n# which isn't available in 3.10.\nfunction(list_prepend LIST_NAME PREFIX)\n    set(NEW_LIST \"\")\n    foreach(element ${${LIST_NAME}})\n        list(APPEND NEW_LIST \"${PREFIX}${element}\")\n    endforeach(element)\n    set(${LIST_NAME} \"${NEW_LIST}\" PARENT_SCOPE)\nendfunction()\n\n# === Flutter Library ===\n# System-level dependencies.\nfind_package(PkgConfig REQUIRED)\npkg_check_modules(GTK REQUIRED IMPORTED_TARGET gtk+-3.0)\npkg_check_modules(GLIB REQUIRED IMPORTED_TARGET glib-2.0)\npkg_check_modules(GIO REQUIRED IMPORTED_TARGET gio-2.0)\n\nset(FLUTTER_LIBRARY \"${EPHEMERAL_DIR}/libflutter_linux_gtk.so\")\n\n# Published to parent scope for install step.\nset(FLUTTER_LIBRARY ${FLUTTER_LIBRARY} PARENT_SCOPE)\nset(FLUTTER_ICU_DATA_FILE \"${EPHEMERAL_DIR}/icudtl.dat\" PARENT_SCOPE)\nset(PROJECT_BUILD_DIR \"${PROJECT_DIR}/build/\" PARENT_SCOPE)\nset(AOT_LIBRARY \"${PROJECT_DIR}/build/lib/libapp.so\" PARENT_SCOPE)\n\nlist(APPEND FLUTTER_LIBRARY_HEADERS\n  \"fl_basic_message_channel.h\"\n  \"fl_binary_codec.h\"\n  \"fl_binary_messenger.h\"\n  \"fl_dart_project.h\"\n  \"fl_engine.h\"\n  \"fl_json_message_codec.h\"\n  \"fl_json_method_codec.h\"\n  \"fl_message_codec.h\"\n  \"fl_method_call.h\"\n  \"fl_method_channel.h\"\n  \"fl_method_codec.h\"\n  \"fl_method_response.h\"\n  \"fl_plugin_registrar.h\"\n  \"fl_plugin_registry.h\"\n  \"fl_standard_message_codec.h\"\n  \"fl_standard_method_codec.h\"\n  \"fl_string_codec.h\"\n  \"fl_value.h\"\n  \"fl_view.h\"\n  \"flutter_linux.h\"\n)\nlist_prepend(FLUTTER_LIBRARY_HEADERS \"${EPHEMERAL_DIR}/flutter_linux/\")\nadd_library(flutter INTERFACE)\ntarget_include_directories(flutter INTERFACE\n  \"${EPHEMERAL_DIR}\"\n)\ntarget_link_libraries(flutter INTERFACE \"${FLUTTER_LIBRARY}\")\ntarget_link_libraries(flutter INTERFACE\n  PkgConfig::GTK\n  PkgConfig::GLIB\n  PkgConfig::GIO\n)\nadd_dependencies(flutter flutter_assemble)\n\n# === Flutter tool backend ===\n# _phony_ is a non-existent file to force this command to run every time,\n# since currently there's no way to get a full input/output list from the\n# flutter tool.\nadd_custom_command(\n  OUTPUT ${FLUTTER_LIBRARY} ${FLUTTER_LIBRARY_HEADERS}\n    ${CMAKE_CURRENT_BINARY_DIR}/_phony_\n  COMMAND ${CMAKE_COMMAND} -E env\n    ${FLUTTER_TOOL_ENVIRONMENT}\n    \"${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.sh\"\n      ${FLUTTER_TARGET_PLATFORM} ${CMAKE_BUILD_TYPE}\n  VERBATIM\n)\nadd_custom_target(flutter_assemble DEPENDS\n  \"${FLUTTER_LIBRARY}\"\n  ${FLUTTER_LIBRARY_HEADERS}\n)\n"
  },
  {
    "path": "example/linux/flutter/generated_plugin_registrant.cc",
    "content": "//\n//  Generated file. Do not edit.\n//\n\n// clang-format off\n\n#include \"generated_plugin_registrant.h\"\n\n\nvoid fl_register_plugins(FlPluginRegistry* registry) {\n}\n"
  },
  {
    "path": "example/linux/flutter/generated_plugin_registrant.h",
    "content": "//\n//  Generated file. Do not edit.\n//\n\n// clang-format off\n\n#ifndef GENERATED_PLUGIN_REGISTRANT_\n#define GENERATED_PLUGIN_REGISTRANT_\n\n#include <flutter_linux/flutter_linux.h>\n\n// Registers Flutter plugins.\nvoid fl_register_plugins(FlPluginRegistry* registry);\n\n#endif  // GENERATED_PLUGIN_REGISTRANT_\n"
  },
  {
    "path": "example/linux/flutter/generated_plugins.cmake",
    "content": "#\n# Generated file, do not edit.\n#\n\nlist(APPEND FLUTTER_PLUGIN_LIST\n)\n\nlist(APPEND FLUTTER_FFI_PLUGIN_LIST\n)\n\nset(PLUGIN_BUNDLED_LIBRARIES)\n\nforeach(plugin ${FLUTTER_PLUGIN_LIST})\n  add_subdirectory(flutter/ephemeral/.plugin_symlinks/${plugin}/linux plugins/${plugin})\n  target_link_libraries(${BINARY_NAME} PRIVATE ${plugin}_plugin)\n  list(APPEND PLUGIN_BUNDLED_LIBRARIES $<TARGET_FILE:${plugin}_plugin>)\n  list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries})\nendforeach(plugin)\n\nforeach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST})\n  add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/linux plugins/${ffi_plugin})\n  list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries})\nendforeach(ffi_plugin)\n"
  },
  {
    "path": "example/linux/main.cc",
    "content": "#include \"my_application.h\"\n\nint main(int argc, char** argv) {\n  g_autoptr(MyApplication) app = my_application_new();\n  return g_application_run(G_APPLICATION(app), argc, argv);\n}\n"
  },
  {
    "path": "example/linux/my_application.cc",
    "content": "#include \"my_application.h\"\n\n#include <flutter_linux/flutter_linux.h>\n#ifdef GDK_WINDOWING_X11\n#include <gdk/gdkx.h>\n#endif\n\n#include \"flutter/generated_plugin_registrant.h\"\n\nstruct _MyApplication {\n  GtkApplication parent_instance;\n  char** dart_entrypoint_arguments;\n};\n\nG_DEFINE_TYPE(MyApplication, my_application, GTK_TYPE_APPLICATION)\n\n// Implements GApplication::activate.\nstatic void my_application_activate(GApplication* application) {\n  MyApplication* self = MY_APPLICATION(application);\n  GtkWindow* window =\n      GTK_WINDOW(gtk_application_window_new(GTK_APPLICATION(application)));\n\n  // Use a header bar when running in GNOME as this is the common style used\n  // by applications and is the setup most users will be using (e.g. Ubuntu\n  // desktop).\n  // If running on X and not using GNOME then just use a traditional title bar\n  // in case the window manager does more exotic layout, e.g. tiling.\n  // If running on Wayland assume the header bar will work (may need changing\n  // if future cases occur).\n  gboolean use_header_bar = TRUE;\n#ifdef GDK_WINDOWING_X11\n  GdkScreen* screen = gtk_window_get_screen(window);\n  if (GDK_IS_X11_SCREEN(screen)) {\n    const gchar* wm_name = gdk_x11_screen_get_window_manager_name(screen);\n    if (g_strcmp0(wm_name, \"GNOME Shell\") != 0) {\n      use_header_bar = FALSE;\n    }\n  }\n#endif\n  if (use_header_bar) {\n    GtkHeaderBar* header_bar = GTK_HEADER_BAR(gtk_header_bar_new());\n    gtk_widget_show(GTK_WIDGET(header_bar));\n    gtk_header_bar_set_title(header_bar, \"example\");\n    gtk_header_bar_set_show_close_button(header_bar, TRUE);\n    gtk_window_set_titlebar(window, GTK_WIDGET(header_bar));\n  } else {\n    gtk_window_set_title(window, \"example\");\n  }\n\n  gtk_window_set_default_size(window, 1280, 720);\n  gtk_widget_show(GTK_WIDGET(window));\n\n  g_autoptr(FlDartProject) project = fl_dart_project_new();\n  fl_dart_project_set_dart_entrypoint_arguments(project, self->dart_entrypoint_arguments);\n\n  FlView* view = fl_view_new(project);\n  gtk_widget_show(GTK_WIDGET(view));\n  gtk_container_add(GTK_CONTAINER(window), GTK_WIDGET(view));\n\n  fl_register_plugins(FL_PLUGIN_REGISTRY(view));\n\n  gtk_widget_grab_focus(GTK_WIDGET(view));\n}\n\n// Implements GApplication::local_command_line.\nstatic gboolean my_application_local_command_line(GApplication* application, gchar*** arguments, int* exit_status) {\n  MyApplication* self = MY_APPLICATION(application);\n  // Strip out the first argument as it is the binary name.\n  self->dart_entrypoint_arguments = g_strdupv(*arguments + 1);\n\n  g_autoptr(GError) error = nullptr;\n  if (!g_application_register(application, nullptr, &error)) {\n     g_warning(\"Failed to register: %s\", error->message);\n     *exit_status = 1;\n     return TRUE;\n  }\n\n  g_application_activate(application);\n  *exit_status = 0;\n\n  return TRUE;\n}\n\n// Implements GApplication::startup.\nstatic void my_application_startup(GApplication* application) {\n  //MyApplication* self = MY_APPLICATION(object);\n\n  // Perform any actions required at application startup.\n\n  G_APPLICATION_CLASS(my_application_parent_class)->startup(application);\n}\n\n// Implements GApplication::shutdown.\nstatic void my_application_shutdown(GApplication* application) {\n  //MyApplication* self = MY_APPLICATION(object);\n\n  // Perform any actions required at application shutdown.\n\n  G_APPLICATION_CLASS(my_application_parent_class)->shutdown(application);\n}\n\n// Implements GObject::dispose.\nstatic void my_application_dispose(GObject* object) {\n  MyApplication* self = MY_APPLICATION(object);\n  g_clear_pointer(&self->dart_entrypoint_arguments, g_strfreev);\n  G_OBJECT_CLASS(my_application_parent_class)->dispose(object);\n}\n\nstatic void my_application_class_init(MyApplicationClass* klass) {\n  G_APPLICATION_CLASS(klass)->activate = my_application_activate;\n  G_APPLICATION_CLASS(klass)->local_command_line = my_application_local_command_line;\n  G_APPLICATION_CLASS(klass)->startup = my_application_startup;\n  G_APPLICATION_CLASS(klass)->shutdown = my_application_shutdown;\n  G_OBJECT_CLASS(klass)->dispose = my_application_dispose;\n}\n\nstatic void my_application_init(MyApplication* self) {}\n\nMyApplication* my_application_new() {\n  return MY_APPLICATION(g_object_new(my_application_get_type(),\n                                     \"application-id\", APPLICATION_ID,\n                                     \"flags\", G_APPLICATION_NON_UNIQUE,\n                                     nullptr));\n}\n"
  },
  {
    "path": "example/linux/my_application.h",
    "content": "#ifndef FLUTTER_MY_APPLICATION_H_\n#define FLUTTER_MY_APPLICATION_H_\n\n#include <gtk/gtk.h>\n\nG_DECLARE_FINAL_TYPE(MyApplication, my_application, MY, APPLICATION,\n                     GtkApplication)\n\n/**\n * my_application_new:\n *\n * Creates a new Flutter-based application.\n *\n * Returns: a new #MyApplication.\n */\nMyApplication* my_application_new();\n\n#endif  // FLUTTER_MY_APPLICATION_H_\n"
  },
  {
    "path": "example/macos/.gitignore",
    "content": "# Flutter-related\n**/Flutter/ephemeral/\n**/Pods/\n\n# Xcode-related\n**/dgph\n**/xcuserdata/\n"
  },
  {
    "path": "example/macos/Flutter/Flutter-Debug.xcconfig",
    "content": "#include \"ephemeral/Flutter-Generated.xcconfig\"\n"
  },
  {
    "path": "example/macos/Flutter/Flutter-Release.xcconfig",
    "content": "#include \"ephemeral/Flutter-Generated.xcconfig\"\n"
  },
  {
    "path": "example/macos/Flutter/GeneratedPluginRegistrant.swift",
    "content": "//\n//  Generated file. Do not edit.\n//\n\nimport FlutterMacOS\nimport Foundation\n\n\nfunc RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {\n}\n"
  },
  {
    "path": "example/macos/Runner/AppDelegate.swift",
    "content": "import Cocoa\nimport FlutterMacOS\n\n@NSApplicationMain\nclass AppDelegate: FlutterAppDelegate {\n  override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {\n    return true\n  }\n}\n"
  },
  {
    "path": "example/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json",
    "content": "{\n  \"images\" : [\n    {\n      \"size\" : \"16x16\",\n      \"idiom\" : \"mac\",\n      \"filename\" : \"app_icon_16.png\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"size\" : \"16x16\",\n      \"idiom\" : \"mac\",\n      \"filename\" : \"app_icon_32.png\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"size\" : \"32x32\",\n      \"idiom\" : \"mac\",\n      \"filename\" : \"app_icon_32.png\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"size\" : \"32x32\",\n      \"idiom\" : \"mac\",\n      \"filename\" : \"app_icon_64.png\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"size\" : \"128x128\",\n      \"idiom\" : \"mac\",\n      \"filename\" : \"app_icon_128.png\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"size\" : \"128x128\",\n      \"idiom\" : \"mac\",\n      \"filename\" : \"app_icon_256.png\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"size\" : \"256x256\",\n      \"idiom\" : \"mac\",\n      \"filename\" : \"app_icon_256.png\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"size\" : \"256x256\",\n      \"idiom\" : \"mac\",\n      \"filename\" : \"app_icon_512.png\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"size\" : \"512x512\",\n      \"idiom\" : \"mac\",\n      \"filename\" : \"app_icon_512.png\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"size\" : \"512x512\",\n      \"idiom\" : \"mac\",\n      \"filename\" : \"app_icon_1024.png\",\n      \"scale\" : \"2x\"\n    }\n  ],\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  }\n}\n"
  },
  {
    "path": "example/macos/Runner/Base.lproj/MainMenu.xib",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<document type=\"com.apple.InterfaceBuilder3.Cocoa.XIB\" version=\"3.0\" toolsVersion=\"14490.70\" targetRuntime=\"MacOSX.Cocoa\" propertyAccessControl=\"none\" useAutolayout=\"YES\" customObjectInstantitationMethod=\"direct\">\n    <dependencies>\n        <deployment identifier=\"macosx\"/>\n        <plugIn identifier=\"com.apple.InterfaceBuilder.CocoaPlugin\" version=\"14490.70\"/>\n        <capability name=\"documents saved in the Xcode 8 format\" minToolsVersion=\"8.0\"/>\n    </dependencies>\n    <objects>\n        <customObject id=\"-2\" userLabel=\"File's Owner\" customClass=\"NSApplication\">\n            <connections>\n                <outlet property=\"delegate\" destination=\"Voe-Tx-rLC\" id=\"GzC-gU-4Uq\"/>\n            </connections>\n        </customObject>\n        <customObject id=\"-1\" userLabel=\"First Responder\" customClass=\"FirstResponder\"/>\n        <customObject id=\"-3\" userLabel=\"Application\" customClass=\"NSObject\"/>\n        <customObject id=\"Voe-Tx-rLC\" customClass=\"AppDelegate\" customModule=\"Runner\" customModuleProvider=\"target\">\n            <connections>\n                <outlet property=\"applicationMenu\" destination=\"uQy-DD-JDr\" id=\"XBo-yE-nKs\"/>\n                <outlet property=\"mainFlutterWindow\" destination=\"QvC-M9-y7g\" id=\"gIp-Ho-8D9\"/>\n            </connections>\n        </customObject>\n        <customObject id=\"YLy-65-1bz\" customClass=\"NSFontManager\"/>\n        <menu title=\"Main Menu\" systemMenu=\"main\" id=\"AYu-sK-qS6\">\n            <items>\n                <menuItem title=\"APP_NAME\" id=\"1Xt-HY-uBw\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <menu key=\"submenu\" title=\"APP_NAME\" systemMenu=\"apple\" id=\"uQy-DD-JDr\">\n                        <items>\n                            <menuItem title=\"About APP_NAME\" id=\"5kV-Vb-QxS\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <connections>\n                                    <action selector=\"orderFrontStandardAboutPanel:\" target=\"-1\" id=\"Exp-CZ-Vem\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem isSeparatorItem=\"YES\" id=\"VOq-y0-SEH\"/>\n                            <menuItem title=\"Preferences…\" keyEquivalent=\",\" id=\"BOF-NM-1cW\"/>\n                            <menuItem isSeparatorItem=\"YES\" id=\"wFC-TO-SCJ\"/>\n                            <menuItem title=\"Services\" id=\"NMo-om-nkz\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <menu key=\"submenu\" title=\"Services\" systemMenu=\"services\" id=\"hz9-B4-Xy5\"/>\n                            </menuItem>\n                            <menuItem isSeparatorItem=\"YES\" id=\"4je-JR-u6R\"/>\n                            <menuItem title=\"Hide APP_NAME\" keyEquivalent=\"h\" id=\"Olw-nP-bQN\">\n                                <connections>\n                                    <action selector=\"hide:\" target=\"-1\" id=\"PnN-Uc-m68\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Hide Others\" keyEquivalent=\"h\" id=\"Vdr-fp-XzO\">\n                                <modifierMask key=\"keyEquivalentModifierMask\" option=\"YES\" command=\"YES\"/>\n                                <connections>\n                                    <action selector=\"hideOtherApplications:\" target=\"-1\" id=\"VT4-aY-XCT\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Show All\" id=\"Kd2-mp-pUS\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <connections>\n                                    <action selector=\"unhideAllApplications:\" target=\"-1\" id=\"Dhg-Le-xox\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem isSeparatorItem=\"YES\" id=\"kCx-OE-vgT\"/>\n                            <menuItem title=\"Quit APP_NAME\" keyEquivalent=\"q\" id=\"4sb-4s-VLi\">\n                                <connections>\n                                    <action selector=\"terminate:\" target=\"-1\" id=\"Te7-pn-YzF\"/>\n                                </connections>\n                            </menuItem>\n                        </items>\n                    </menu>\n                </menuItem>\n                <menuItem title=\"Edit\" id=\"5QF-Oa-p0T\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <menu key=\"submenu\" title=\"Edit\" id=\"W48-6f-4Dl\">\n                        <items>\n                            <menuItem title=\"Undo\" keyEquivalent=\"z\" id=\"dRJ-4n-Yzg\">\n                                <connections>\n                                    <action selector=\"undo:\" target=\"-1\" id=\"M6e-cu-g7V\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Redo\" keyEquivalent=\"Z\" id=\"6dh-zS-Vam\">\n                                <connections>\n                                    <action selector=\"redo:\" target=\"-1\" id=\"oIA-Rs-6OD\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem isSeparatorItem=\"YES\" id=\"WRV-NI-Exz\"/>\n                            <menuItem title=\"Cut\" keyEquivalent=\"x\" id=\"uRl-iY-unG\">\n                                <connections>\n                                    <action selector=\"cut:\" target=\"-1\" id=\"YJe-68-I9s\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Copy\" keyEquivalent=\"c\" id=\"x3v-GG-iWU\">\n                                <connections>\n                                    <action selector=\"copy:\" target=\"-1\" id=\"G1f-GL-Joy\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Paste\" keyEquivalent=\"v\" id=\"gVA-U4-sdL\">\n                                <connections>\n                                    <action selector=\"paste:\" target=\"-1\" id=\"UvS-8e-Qdg\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Paste and Match Style\" keyEquivalent=\"V\" id=\"WeT-3V-zwk\">\n                                <modifierMask key=\"keyEquivalentModifierMask\" option=\"YES\" command=\"YES\"/>\n                                <connections>\n                                    <action selector=\"pasteAsPlainText:\" target=\"-1\" id=\"cEh-KX-wJQ\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Delete\" id=\"pa3-QI-u2k\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <connections>\n                                    <action selector=\"delete:\" target=\"-1\" id=\"0Mk-Ml-PaM\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Select All\" keyEquivalent=\"a\" id=\"Ruw-6m-B2m\">\n                                <connections>\n                                    <action selector=\"selectAll:\" target=\"-1\" id=\"VNm-Mi-diN\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem isSeparatorItem=\"YES\" id=\"uyl-h8-XO2\"/>\n                            <menuItem title=\"Find\" id=\"4EN-yA-p0u\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <menu key=\"submenu\" title=\"Find\" id=\"1b7-l0-nxx\">\n                                    <items>\n                                        <menuItem title=\"Find…\" tag=\"1\" keyEquivalent=\"f\" id=\"Xz5-n4-O0W\">\n                                            <connections>\n                                                <action selector=\"performFindPanelAction:\" target=\"-1\" id=\"cD7-Qs-BN4\"/>\n                                            </connections>\n                                        </menuItem>\n                                        <menuItem title=\"Find and Replace…\" tag=\"12\" keyEquivalent=\"f\" id=\"YEy-JH-Tfz\">\n                                            <modifierMask key=\"keyEquivalentModifierMask\" option=\"YES\" command=\"YES\"/>\n                                            <connections>\n                                                <action selector=\"performFindPanelAction:\" target=\"-1\" id=\"WD3-Gg-5AJ\"/>\n                                            </connections>\n                                        </menuItem>\n                                        <menuItem title=\"Find Next\" tag=\"2\" keyEquivalent=\"g\" id=\"q09-fT-Sye\">\n                                            <connections>\n                                                <action selector=\"performFindPanelAction:\" target=\"-1\" id=\"NDo-RZ-v9R\"/>\n                                            </connections>\n                                        </menuItem>\n                                        <menuItem title=\"Find Previous\" tag=\"3\" keyEquivalent=\"G\" id=\"OwM-mh-QMV\">\n                                            <connections>\n                                                <action selector=\"performFindPanelAction:\" target=\"-1\" id=\"HOh-sY-3ay\"/>\n                                            </connections>\n                                        </menuItem>\n                                        <menuItem title=\"Use Selection for Find\" tag=\"7\" keyEquivalent=\"e\" id=\"buJ-ug-pKt\">\n                                            <connections>\n                                                <action selector=\"performFindPanelAction:\" target=\"-1\" id=\"U76-nv-p5D\"/>\n                                            </connections>\n                                        </menuItem>\n                                        <menuItem title=\"Jump to Selection\" keyEquivalent=\"j\" id=\"S0p-oC-mLd\">\n                                            <connections>\n                                                <action selector=\"centerSelectionInVisibleArea:\" target=\"-1\" id=\"IOG-6D-g5B\"/>\n                                            </connections>\n                                        </menuItem>\n                                    </items>\n                                </menu>\n                            </menuItem>\n                            <menuItem title=\"Spelling and Grammar\" id=\"Dv1-io-Yv7\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <menu key=\"submenu\" title=\"Spelling\" id=\"3IN-sU-3Bg\">\n                                    <items>\n                                        <menuItem title=\"Show Spelling and Grammar\" keyEquivalent=\":\" id=\"HFo-cy-zxI\">\n                                            <connections>\n                                                <action selector=\"showGuessPanel:\" target=\"-1\" id=\"vFj-Ks-hy3\"/>\n                                            </connections>\n                                        </menuItem>\n                                        <menuItem title=\"Check Document Now\" keyEquivalent=\";\" id=\"hz2-CU-CR7\">\n                                            <connections>\n                                                <action selector=\"checkSpelling:\" target=\"-1\" id=\"fz7-VC-reM\"/>\n                                            </connections>\n                                        </menuItem>\n                                        <menuItem isSeparatorItem=\"YES\" id=\"bNw-od-mp5\"/>\n                                        <menuItem title=\"Check Spelling While Typing\" id=\"rbD-Rh-wIN\">\n                                            <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                            <connections>\n                                                <action selector=\"toggleContinuousSpellChecking:\" target=\"-1\" id=\"7w6-Qz-0kB\"/>\n                                            </connections>\n                                        </menuItem>\n                                        <menuItem title=\"Check Grammar With Spelling\" id=\"mK6-2p-4JG\">\n                                            <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                            <connections>\n                                                <action selector=\"toggleGrammarChecking:\" target=\"-1\" id=\"muD-Qn-j4w\"/>\n                                            </connections>\n                                        </menuItem>\n                                        <menuItem title=\"Correct Spelling Automatically\" id=\"78Y-hA-62v\">\n                                            <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                            <connections>\n                                                <action selector=\"toggleAutomaticSpellingCorrection:\" target=\"-1\" id=\"2lM-Qi-WAP\"/>\n                                            </connections>\n                                        </menuItem>\n                                    </items>\n                                </menu>\n                            </menuItem>\n                            <menuItem title=\"Substitutions\" id=\"9ic-FL-obx\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <menu key=\"submenu\" title=\"Substitutions\" id=\"FeM-D8-WVr\">\n                                    <items>\n                                        <menuItem title=\"Show Substitutions\" id=\"z6F-FW-3nz\">\n                                            <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                            <connections>\n                                                <action selector=\"orderFrontSubstitutionsPanel:\" target=\"-1\" id=\"oku-mr-iSq\"/>\n                                            </connections>\n                                        </menuItem>\n                                        <menuItem isSeparatorItem=\"YES\" id=\"gPx-C9-uUO\"/>\n                                        <menuItem title=\"Smart Copy/Paste\" id=\"9yt-4B-nSM\">\n                                            <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                            <connections>\n                                                <action selector=\"toggleSmartInsertDelete:\" target=\"-1\" id=\"3IJ-Se-DZD\"/>\n                                            </connections>\n                                        </menuItem>\n                                        <menuItem title=\"Smart Quotes\" id=\"hQb-2v-fYv\">\n                                            <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                            <connections>\n                                                <action selector=\"toggleAutomaticQuoteSubstitution:\" target=\"-1\" id=\"ptq-xd-QOA\"/>\n                                            </connections>\n                                        </menuItem>\n                                        <menuItem title=\"Smart Dashes\" id=\"rgM-f4-ycn\">\n                                            <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                            <connections>\n                                                <action selector=\"toggleAutomaticDashSubstitution:\" target=\"-1\" id=\"oCt-pO-9gS\"/>\n                                            </connections>\n                                        </menuItem>\n                                        <menuItem title=\"Smart Links\" id=\"cwL-P1-jid\">\n                                            <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                            <connections>\n                                                <action selector=\"toggleAutomaticLinkDetection:\" target=\"-1\" id=\"Gip-E3-Fov\"/>\n                                            </connections>\n                                        </menuItem>\n                                        <menuItem title=\"Data Detectors\" id=\"tRr-pd-1PS\">\n                                            <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                            <connections>\n                                                <action selector=\"toggleAutomaticDataDetection:\" target=\"-1\" id=\"R1I-Nq-Kbl\"/>\n                                            </connections>\n                                        </menuItem>\n                                        <menuItem title=\"Text Replacement\" id=\"HFQ-gK-NFA\">\n                                            <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                            <connections>\n                                                <action selector=\"toggleAutomaticTextReplacement:\" target=\"-1\" id=\"DvP-Fe-Py6\"/>\n                                            </connections>\n                                        </menuItem>\n                                    </items>\n                                </menu>\n                            </menuItem>\n                            <menuItem title=\"Transformations\" id=\"2oI-Rn-ZJC\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <menu key=\"submenu\" title=\"Transformations\" id=\"c8a-y6-VQd\">\n                                    <items>\n                                        <menuItem title=\"Make Upper Case\" id=\"vmV-6d-7jI\">\n                                            <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                            <connections>\n                                                <action selector=\"uppercaseWord:\" target=\"-1\" id=\"sPh-Tk-edu\"/>\n                                            </connections>\n                                        </menuItem>\n                                        <menuItem title=\"Make Lower Case\" id=\"d9M-CD-aMd\">\n                                            <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                            <connections>\n                                                <action selector=\"lowercaseWord:\" target=\"-1\" id=\"iUZ-b5-hil\"/>\n                                            </connections>\n                                        </menuItem>\n                                        <menuItem title=\"Capitalize\" id=\"UEZ-Bs-lqG\">\n                                            <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                            <connections>\n                                                <action selector=\"capitalizeWord:\" target=\"-1\" id=\"26H-TL-nsh\"/>\n                                            </connections>\n                                        </menuItem>\n                                    </items>\n                                </menu>\n                            </menuItem>\n                            <menuItem title=\"Speech\" id=\"xrE-MZ-jX0\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <menu key=\"submenu\" title=\"Speech\" id=\"3rS-ZA-NoH\">\n                                    <items>\n                                        <menuItem title=\"Start Speaking\" id=\"Ynk-f8-cLZ\">\n                                            <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                            <connections>\n                                                <action selector=\"startSpeaking:\" target=\"-1\" id=\"654-Ng-kyl\"/>\n                                            </connections>\n                                        </menuItem>\n                                        <menuItem title=\"Stop Speaking\" id=\"Oyz-dy-DGm\">\n                                            <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                            <connections>\n                                                <action selector=\"stopSpeaking:\" target=\"-1\" id=\"dX8-6p-jy9\"/>\n                                            </connections>\n                                        </menuItem>\n                                    </items>\n                                </menu>\n                            </menuItem>\n                        </items>\n                    </menu>\n                </menuItem>\n                <menuItem title=\"View\" id=\"H8h-7b-M4v\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <menu key=\"submenu\" title=\"View\" id=\"HyV-fh-RgO\">\n                        <items>\n                            <menuItem title=\"Enter Full Screen\" keyEquivalent=\"f\" id=\"4J7-dP-txa\">\n                                <modifierMask key=\"keyEquivalentModifierMask\" control=\"YES\" command=\"YES\"/>\n                                <connections>\n                                    <action selector=\"toggleFullScreen:\" target=\"-1\" id=\"dU3-MA-1Rq\"/>\n                                </connections>\n                            </menuItem>\n                        </items>\n                    </menu>\n                </menuItem>\n                <menuItem title=\"Window\" id=\"aUF-d1-5bR\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <menu key=\"submenu\" title=\"Window\" systemMenu=\"window\" id=\"Td7-aD-5lo\">\n                        <items>\n                            <menuItem title=\"Minimize\" keyEquivalent=\"m\" id=\"OY7-WF-poV\">\n                                <connections>\n                                    <action selector=\"performMiniaturize:\" target=\"-1\" id=\"VwT-WD-YPe\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Zoom\" id=\"R4o-n2-Eq4\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <connections>\n                                    <action selector=\"performZoom:\" target=\"-1\" id=\"DIl-cC-cCs\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem isSeparatorItem=\"YES\" id=\"eu3-7i-yIM\"/>\n                            <menuItem title=\"Bring All to Front\" id=\"LE2-aR-0XJ\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <connections>\n                                    <action selector=\"arrangeInFront:\" target=\"-1\" id=\"DRN-fu-gQh\"/>\n                                </connections>\n                            </menuItem>\n                        </items>\n                    </menu>\n                </menuItem>\n                <menuItem title=\"Help\" id=\"EPT-qC-fAb\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <menu key=\"submenu\" title=\"Help\" systemMenu=\"help\" id=\"rJ0-wn-3NY\"/>\n                </menuItem>\n            </items>\n            <point key=\"canvasLocation\" x=\"142\" y=\"-258\"/>\n        </menu>\n        <window title=\"APP_NAME\" allowsToolTipsWhenApplicationIsInactive=\"NO\" autorecalculatesKeyViewLoop=\"NO\" releasedWhenClosed=\"NO\" animationBehavior=\"default\" id=\"QvC-M9-y7g\" customClass=\"MainFlutterWindow\" customModule=\"Runner\" customModuleProvider=\"target\">\n            <windowStyleMask key=\"styleMask\" titled=\"YES\" closable=\"YES\" miniaturizable=\"YES\" resizable=\"YES\"/>\n            <rect key=\"contentRect\" x=\"335\" y=\"390\" width=\"800\" height=\"600\"/>\n            <rect key=\"screenRect\" x=\"0.0\" y=\"0.0\" width=\"2560\" height=\"1577\"/>\n            <view key=\"contentView\" wantsLayer=\"YES\" id=\"EiT-Mj-1SZ\">\n                <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"800\" height=\"600\"/>\n                <autoresizingMask key=\"autoresizingMask\"/>\n            </view>\n        </window>\n    </objects>\n</document>\n"
  },
  {
    "path": "example/macos/Runner/Configs/AppInfo.xcconfig",
    "content": "// Application-level settings for the Runner target.\n//\n// This may be replaced with something auto-generated from metadata (e.g., pubspec.yaml) in the\n// future. If not, the values below would default to using the project name when this becomes a\n// 'flutter create' template.\n\n// The application's name. By default this is also the title of the Flutter window.\nPRODUCT_NAME = example\n\n// The application's bundle identifier\nPRODUCT_BUNDLE_IDENTIFIER = com.example.example\n\n// The copyright displayed in application information\nPRODUCT_COPYRIGHT = Copyright © 2024 com.example. All rights reserved.\n"
  },
  {
    "path": "example/macos/Runner/Configs/Debug.xcconfig",
    "content": "#include \"../../Flutter/Flutter-Debug.xcconfig\"\n#include \"Warnings.xcconfig\"\n"
  },
  {
    "path": "example/macos/Runner/Configs/Release.xcconfig",
    "content": "#include \"../../Flutter/Flutter-Release.xcconfig\"\n#include \"Warnings.xcconfig\"\n"
  },
  {
    "path": "example/macos/Runner/Configs/Warnings.xcconfig",
    "content": "WARNING_CFLAGS = -Wall -Wconditional-uninitialized -Wnullable-to-nonnull-conversion -Wmissing-method-return-type -Woverlength-strings\nGCC_WARN_UNDECLARED_SELECTOR = YES\nCLANG_UNDEFINED_BEHAVIOR_SANITIZER_NULLABILITY = YES\nCLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE\nCLANG_WARN__DUPLICATE_METHOD_MATCH = YES\nCLANG_WARN_PRAGMA_PACK = YES\nCLANG_WARN_STRICT_PROTOTYPES = YES\nCLANG_WARN_COMMA = YES\nGCC_WARN_STRICT_SELECTOR_MATCH = YES\nCLANG_WARN_OBJC_REPEATED_USE_OF_WEAK = YES\nCLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES\nGCC_WARN_SHADOW = YES\nCLANG_WARN_UNREACHABLE_CODE = YES\n"
  },
  {
    "path": "example/macos/Runner/DebugProfile.entitlements",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>com.apple.security.app-sandbox</key>\n\t<true/>\n\t<key>com.apple.security.cs.allow-jit</key>\n\t<true/>\n\t<key>com.apple.security.network.server</key>\n\t<true/>\n</dict>\n</plist>\n"
  },
  {
    "path": "example/macos/Runner/Info.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>CFBundleDevelopmentRegion</key>\n\t<string>$(DEVELOPMENT_LANGUAGE)</string>\n\t<key>CFBundleExecutable</key>\n\t<string>$(EXECUTABLE_NAME)</string>\n\t<key>CFBundleIconFile</key>\n\t<string></string>\n\t<key>CFBundleIdentifier</key>\n\t<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>\n\t<key>CFBundleInfoDictionaryVersion</key>\n\t<string>6.0</string>\n\t<key>CFBundleName</key>\n\t<string>$(PRODUCT_NAME)</string>\n\t<key>CFBundlePackageType</key>\n\t<string>APPL</string>\n\t<key>CFBundleShortVersionString</key>\n\t<string>$(FLUTTER_BUILD_NAME)</string>\n\t<key>CFBundleVersion</key>\n\t<string>$(FLUTTER_BUILD_NUMBER)</string>\n\t<key>LSMinimumSystemVersion</key>\n\t<string>$(MACOSX_DEPLOYMENT_TARGET)</string>\n\t<key>NSHumanReadableCopyright</key>\n\t<string>$(PRODUCT_COPYRIGHT)</string>\n\t<key>NSMainNibFile</key>\n\t<string>MainMenu</string>\n\t<key>NSPrincipalClass</key>\n\t<string>NSApplication</string>\n</dict>\n</plist>\n"
  },
  {
    "path": "example/macos/Runner/MainFlutterWindow.swift",
    "content": "import Cocoa\nimport FlutterMacOS\n\nclass MainFlutterWindow: NSWindow {\n  override func awakeFromNib() {\n    let flutterViewController = FlutterViewController()\n    let windowFrame = self.frame\n    self.contentViewController = flutterViewController\n    self.setFrame(windowFrame, display: true)\n\n    RegisterGeneratedPlugins(registry: flutterViewController)\n\n    super.awakeFromNib()\n  }\n}\n"
  },
  {
    "path": "example/macos/Runner/Release.entitlements",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>com.apple.security.app-sandbox</key>\n\t<true/>\n</dict>\n</plist>\n"
  },
  {
    "path": "example/macos/Runner.xcodeproj/project.pbxproj",
    "content": "// !$*UTF8*$!\n{\n\tarchiveVersion = 1;\n\tclasses = {\n\t};\n\tobjectVersion = 54;\n\tobjects = {\n\n/* Begin PBXAggregateTarget section */\n\t\t33CC111A2044C6BA0003C045 /* Flutter Assemble */ = {\n\t\t\tisa = PBXAggregateTarget;\n\t\t\tbuildConfigurationList = 33CC111B2044C6BA0003C045 /* Build configuration list for PBXAggregateTarget \"Flutter Assemble\" */;\n\t\t\tbuildPhases = (\n\t\t\t\t33CC111E2044C6BF0003C045 /* ShellScript */,\n\t\t\t);\n\t\t\tdependencies = (\n\t\t\t);\n\t\t\tname = \"Flutter Assemble\";\n\t\t\tproductName = FLX;\n\t\t};\n/* End PBXAggregateTarget section */\n\n/* Begin PBXBuildFile section */\n\t\t331C80D8294CF71000263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C80D7294CF71000263BE5 /* RunnerTests.swift */; };\n\t\t335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */ = {isa = PBXBuildFile; fileRef = 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */; };\n\t\t33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC10F02044A3C60003C045 /* AppDelegate.swift */; };\n\t\t33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F22044A3C60003C045 /* Assets.xcassets */; };\n\t\t33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F42044A3C60003C045 /* MainMenu.xib */; };\n\t\t33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */; };\n/* End PBXBuildFile section */\n\n/* Begin PBXContainerItemProxy section */\n\t\t331C80D9294CF71000263BE5 /* PBXContainerItemProxy */ = {\n\t\t\tisa = PBXContainerItemProxy;\n\t\t\tcontainerPortal = 33CC10E52044A3C60003C045 /* Project object */;\n\t\t\tproxyType = 1;\n\t\t\tremoteGlobalIDString = 33CC10EC2044A3C60003C045;\n\t\t\tremoteInfo = Runner;\n\t\t};\n\t\t33CC111F2044C79F0003C045 /* PBXContainerItemProxy */ = {\n\t\t\tisa = PBXContainerItemProxy;\n\t\t\tcontainerPortal = 33CC10E52044A3C60003C045 /* Project object */;\n\t\t\tproxyType = 1;\n\t\t\tremoteGlobalIDString = 33CC111A2044C6BA0003C045;\n\t\t\tremoteInfo = FLX;\n\t\t};\n/* End PBXContainerItemProxy section */\n\n/* Begin PBXCopyFilesBuildPhase section */\n\t\t33CC110E2044A8840003C045 /* Bundle Framework */ = {\n\t\t\tisa = PBXCopyFilesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tdstPath = \"\";\n\t\t\tdstSubfolderSpec = 10;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\tname = \"Bundle Framework\";\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXCopyFilesBuildPhase section */\n\n/* Begin PBXFileReference section */\n\t\t331C80D5294CF71000263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\t331C80D7294CF71000263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = \"<group>\"; };\n\t\t333000ED22D3DE5D00554162 /* Warnings.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Warnings.xcconfig; sourceTree = \"<group>\"; };\n\t\t335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GeneratedPluginRegistrant.swift; sourceTree = \"<group>\"; };\n\t\t33CC10ED2044A3C60003C045 /* example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = \"example.app\"; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\t33CC10F02044A3C60003C045 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = \"<group>\"; };\n\t\t33CC10F22044A3C60003C045 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Assets.xcassets; path = Runner/Assets.xcassets; sourceTree = \"<group>\"; };\n\t\t33CC10F52044A3C60003C045 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = \"<group>\"; };\n\t\t33CC10F72044A3C60003C045 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = Info.plist; path = Runner/Info.plist; sourceTree = \"<group>\"; };\n\t\t33CC11122044BFA00003C045 /* MainFlutterWindow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainFlutterWindow.swift; sourceTree = \"<group>\"; };\n\t\t33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = \"Flutter-Debug.xcconfig\"; sourceTree = \"<group>\"; };\n\t\t33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = \"Flutter-Release.xcconfig\"; sourceTree = \"<group>\"; };\n\t\t33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = \"Flutter-Generated.xcconfig\"; path = \"ephemeral/Flutter-Generated.xcconfig\"; sourceTree = \"<group>\"; };\n\t\t33E51913231747F40026EE4D /* DebugProfile.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = DebugProfile.entitlements; sourceTree = \"<group>\"; };\n\t\t33E51914231749380026EE4D /* Release.entitlements */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.entitlements; path = Release.entitlements; sourceTree = \"<group>\"; };\n\t\t33E5194F232828860026EE4D /* AppInfo.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = AppInfo.xcconfig; sourceTree = \"<group>\"; };\n\t\t7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Release.xcconfig; sourceTree = \"<group>\"; };\n\t\t9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Debug.xcconfig; sourceTree = \"<group>\"; };\n/* End PBXFileReference section */\n\n/* Begin PBXFrameworksBuildPhase section */\n\t\t331C80D2294CF70F00263BE5 /* Frameworks */ = {\n\t\t\tisa = PBXFrameworksBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\t33CC10EA2044A3C60003C045 /* Frameworks */ = {\n\t\t\tisa = PBXFrameworksBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXFrameworksBuildPhase section */\n\n/* Begin PBXGroup section */\n\t\t331C80D6294CF71000263BE5 /* RunnerTests */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t331C80D7294CF71000263BE5 /* RunnerTests.swift */,\n\t\t\t);\n\t\t\tpath = RunnerTests;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t33BA886A226E78AF003329D5 /* Configs */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t33E5194F232828860026EE4D /* AppInfo.xcconfig */,\n\t\t\t\t9740EEB21CF90195004384FC /* Debug.xcconfig */,\n\t\t\t\t7AFA3C8E1D35360C0083082E /* Release.xcconfig */,\n\t\t\t\t333000ED22D3DE5D00554162 /* Warnings.xcconfig */,\n\t\t\t);\n\t\t\tpath = Configs;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t33CC10E42044A3C60003C045 = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t33FAB671232836740065AC1E /* Runner */,\n\t\t\t\t33CEB47122A05771004F2AC0 /* Flutter */,\n\t\t\t\t331C80D6294CF71000263BE5 /* RunnerTests */,\n\t\t\t\t33CC10EE2044A3C60003C045 /* Products */,\n\t\t\t\tD73912EC22F37F3D000D13A0 /* Frameworks */,\n\t\t\t);\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t33CC10EE2044A3C60003C045 /* Products */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t33CC10ED2044A3C60003C045 /* example.app */,\n\t\t\t\t331C80D5294CF71000263BE5 /* RunnerTests.xctest */,\n\t\t\t);\n\t\t\tname = Products;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t33CC11242044D66E0003C045 /* Resources */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t33CC10F22044A3C60003C045 /* Assets.xcassets */,\n\t\t\t\t33CC10F42044A3C60003C045 /* MainMenu.xib */,\n\t\t\t\t33CC10F72044A3C60003C045 /* Info.plist */,\n\t\t\t);\n\t\t\tname = Resources;\n\t\t\tpath = ..;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t33CEB47122A05771004F2AC0 /* Flutter */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */,\n\t\t\t\t33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */,\n\t\t\t\t33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */,\n\t\t\t\t33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */,\n\t\t\t);\n\t\t\tpath = Flutter;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t33FAB671232836740065AC1E /* Runner */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t33CC10F02044A3C60003C045 /* AppDelegate.swift */,\n\t\t\t\t33CC11122044BFA00003C045 /* MainFlutterWindow.swift */,\n\t\t\t\t33E51913231747F40026EE4D /* DebugProfile.entitlements */,\n\t\t\t\t33E51914231749380026EE4D /* Release.entitlements */,\n\t\t\t\t33CC11242044D66E0003C045 /* Resources */,\n\t\t\t\t33BA886A226E78AF003329D5 /* Configs */,\n\t\t\t);\n\t\t\tpath = Runner;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tD73912EC22F37F3D000D13A0 /* Frameworks */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t);\n\t\t\tname = Frameworks;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n/* End PBXGroup section */\n\n/* Begin PBXNativeTarget section */\n\t\t331C80D4294CF70F00263BE5 /* RunnerTests */ = {\n\t\t\tisa = PBXNativeTarget;\n\t\t\tbuildConfigurationList = 331C80DE294CF71000263BE5 /* Build configuration list for PBXNativeTarget \"RunnerTests\" */;\n\t\t\tbuildPhases = (\n\t\t\t\t331C80D1294CF70F00263BE5 /* Sources */,\n\t\t\t\t331C80D2294CF70F00263BE5 /* Frameworks */,\n\t\t\t\t331C80D3294CF70F00263BE5 /* Resources */,\n\t\t\t);\n\t\t\tbuildRules = (\n\t\t\t);\n\t\t\tdependencies = (\n\t\t\t\t331C80DA294CF71000263BE5 /* PBXTargetDependency */,\n\t\t\t);\n\t\t\tname = RunnerTests;\n\t\t\tproductName = RunnerTests;\n\t\t\tproductReference = 331C80D5294CF71000263BE5 /* RunnerTests.xctest */;\n\t\t\tproductType = \"com.apple.product-type.bundle.unit-test\";\n\t\t};\n\t\t33CC10EC2044A3C60003C045 /* Runner */ = {\n\t\t\tisa = PBXNativeTarget;\n\t\t\tbuildConfigurationList = 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget \"Runner\" */;\n\t\t\tbuildPhases = (\n\t\t\t\t33CC10E92044A3C60003C045 /* Sources */,\n\t\t\t\t33CC10EA2044A3C60003C045 /* Frameworks */,\n\t\t\t\t33CC10EB2044A3C60003C045 /* Resources */,\n\t\t\t\t33CC110E2044A8840003C045 /* Bundle Framework */,\n\t\t\t\t3399D490228B24CF009A79C7 /* ShellScript */,\n\t\t\t);\n\t\t\tbuildRules = (\n\t\t\t);\n\t\t\tdependencies = (\n\t\t\t\t33CC11202044C79F0003C045 /* PBXTargetDependency */,\n\t\t\t);\n\t\t\tname = Runner;\n\t\t\tproductName = Runner;\n\t\t\tproductReference = 33CC10ED2044A3C60003C045 /* example.app */;\n\t\t\tproductType = \"com.apple.product-type.application\";\n\t\t};\n/* End PBXNativeTarget section */\n\n/* Begin PBXProject section */\n\t\t33CC10E52044A3C60003C045 /* Project object */ = {\n\t\t\tisa = PBXProject;\n\t\t\tattributes = {\n\t\t\t\tLastSwiftUpdateCheck = 0920;\n\t\t\t\tLastUpgradeCheck = 1430;\n\t\t\t\tORGANIZATIONNAME = \"\";\n\t\t\t\tTargetAttributes = {\n\t\t\t\t\t331C80D4294CF70F00263BE5 = {\n\t\t\t\t\t\tCreatedOnToolsVersion = 14.0;\n\t\t\t\t\t\tTestTargetID = 33CC10EC2044A3C60003C045;\n\t\t\t\t\t};\n\t\t\t\t\t33CC10EC2044A3C60003C045 = {\n\t\t\t\t\t\tCreatedOnToolsVersion = 9.2;\n\t\t\t\t\t\tLastSwiftMigration = 1100;\n\t\t\t\t\t\tProvisioningStyle = Automatic;\n\t\t\t\t\t\tSystemCapabilities = {\n\t\t\t\t\t\t\tcom.apple.Sandbox = {\n\t\t\t\t\t\t\t\tenabled = 1;\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t};\n\t\t\t\t\t};\n\t\t\t\t\t33CC111A2044C6BA0003C045 = {\n\t\t\t\t\t\tCreatedOnToolsVersion = 9.2;\n\t\t\t\t\t\tProvisioningStyle = Manual;\n\t\t\t\t\t};\n\t\t\t\t};\n\t\t\t};\n\t\t\tbuildConfigurationList = 33CC10E82044A3C60003C045 /* Build configuration list for PBXProject \"Runner\" */;\n\t\t\tcompatibilityVersion = \"Xcode 9.3\";\n\t\t\tdevelopmentRegion = en;\n\t\t\thasScannedForEncodings = 0;\n\t\t\tknownRegions = (\n\t\t\t\ten,\n\t\t\t\tBase,\n\t\t\t);\n\t\t\tmainGroup = 33CC10E42044A3C60003C045;\n\t\t\tproductRefGroup = 33CC10EE2044A3C60003C045 /* Products */;\n\t\t\tprojectDirPath = \"\";\n\t\t\tprojectRoot = \"\";\n\t\t\ttargets = (\n\t\t\t\t33CC10EC2044A3C60003C045 /* Runner */,\n\t\t\t\t331C80D4294CF70F00263BE5 /* RunnerTests */,\n\t\t\t\t33CC111A2044C6BA0003C045 /* Flutter Assemble */,\n\t\t\t);\n\t\t};\n/* End PBXProject section */\n\n/* Begin PBXResourcesBuildPhase section */\n\t\t331C80D3294CF70F00263BE5 /* Resources */ = {\n\t\t\tisa = PBXResourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\t33CC10EB2044A3C60003C045 /* Resources */ = {\n\t\t\tisa = PBXResourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */,\n\t\t\t\t33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXResourcesBuildPhase section */\n\n/* Begin PBXShellScriptBuildPhase section */\n\t\t3399D490228B24CF009A79C7 /* ShellScript */ = {\n\t\t\tisa = PBXShellScriptBuildPhase;\n\t\t\talwaysOutOfDate = 1;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\tinputFileListPaths = (\n\t\t\t);\n\t\t\tinputPaths = (\n\t\t\t);\n\t\t\toutputFileListPaths = (\n\t\t\t);\n\t\t\toutputPaths = (\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t\tshellPath = /bin/sh;\n\t\t\tshellScript = \"echo \\\"$PRODUCT_NAME.app\\\" > \\\"$PROJECT_DIR\\\"/Flutter/ephemeral/.app_filename && \\\"$FLUTTER_ROOT\\\"/packages/flutter_tools/bin/macos_assemble.sh embed\\n\";\n\t\t};\n\t\t33CC111E2044C6BF0003C045 /* ShellScript */ = {\n\t\t\tisa = PBXShellScriptBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\tinputFileListPaths = (\n\t\t\t\tFlutter/ephemeral/FlutterInputs.xcfilelist,\n\t\t\t);\n\t\t\tinputPaths = (\n\t\t\t\tFlutter/ephemeral/tripwire,\n\t\t\t);\n\t\t\toutputFileListPaths = (\n\t\t\t\tFlutter/ephemeral/FlutterOutputs.xcfilelist,\n\t\t\t);\n\t\t\toutputPaths = (\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t\tshellPath = /bin/sh;\n\t\t\tshellScript = \"\\\"$FLUTTER_ROOT\\\"/packages/flutter_tools/bin/macos_assemble.sh && touch Flutter/ephemeral/tripwire\";\n\t\t};\n/* End PBXShellScriptBuildPhase section */\n\n/* Begin PBXSourcesBuildPhase section */\n\t\t331C80D1294CF70F00263BE5 /* Sources */ = {\n\t\t\tisa = PBXSourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t331C80D8294CF71000263BE5 /* RunnerTests.swift in Sources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\t33CC10E92044A3C60003C045 /* Sources */ = {\n\t\t\tisa = PBXSourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */,\n\t\t\t\t33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */,\n\t\t\t\t335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXSourcesBuildPhase section */\n\n/* Begin PBXTargetDependency section */\n\t\t331C80DA294CF71000263BE5 /* PBXTargetDependency */ = {\n\t\t\tisa = PBXTargetDependency;\n\t\t\ttarget = 33CC10EC2044A3C60003C045 /* Runner */;\n\t\t\ttargetProxy = 331C80D9294CF71000263BE5 /* PBXContainerItemProxy */;\n\t\t};\n\t\t33CC11202044C79F0003C045 /* PBXTargetDependency */ = {\n\t\t\tisa = PBXTargetDependency;\n\t\t\ttarget = 33CC111A2044C6BA0003C045 /* Flutter Assemble */;\n\t\t\ttargetProxy = 33CC111F2044C79F0003C045 /* PBXContainerItemProxy */;\n\t\t};\n/* End PBXTargetDependency section */\n\n/* Begin PBXVariantGroup section */\n\t\t33CC10F42044A3C60003C045 /* MainMenu.xib */ = {\n\t\t\tisa = PBXVariantGroup;\n\t\t\tchildren = (\n\t\t\t\t33CC10F52044A3C60003C045 /* Base */,\n\t\t\t);\n\t\t\tname = MainMenu.xib;\n\t\t\tpath = Runner;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n/* End PBXVariantGroup section */\n\n/* Begin XCBuildConfiguration section */\n\t\t331C80DB294CF71000263BE5 /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tBUNDLE_LOADER = \"$(TEST_HOST)\";\n\t\t\t\tCURRENT_PROJECT_VERSION = 1;\n\t\t\t\tGENERATE_INFOPLIST_FILE = YES;\n\t\t\t\tMARKETING_VERSION = 1.0;\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = com.example.example.RunnerTests;\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tSWIFT_VERSION = 5.0;\n\t\t\t\tTEST_HOST = \"$(BUILT_PRODUCTS_DIR)/example.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/example\";\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\t331C80DC294CF71000263BE5 /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tBUNDLE_LOADER = \"$(TEST_HOST)\";\n\t\t\t\tCURRENT_PROJECT_VERSION = 1;\n\t\t\t\tGENERATE_INFOPLIST_FILE = YES;\n\t\t\t\tMARKETING_VERSION = 1.0;\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = com.example.example.RunnerTests;\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tSWIFT_VERSION = 5.0;\n\t\t\t\tTEST_HOST = \"$(BUILT_PRODUCTS_DIR)/example.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/example\";\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n\t\t331C80DD294CF71000263BE5 /* Profile */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tBUNDLE_LOADER = \"$(TEST_HOST)\";\n\t\t\t\tCURRENT_PROJECT_VERSION = 1;\n\t\t\t\tGENERATE_INFOPLIST_FILE = YES;\n\t\t\t\tMARKETING_VERSION = 1.0;\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = com.example.example.RunnerTests;\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tSWIFT_VERSION = 5.0;\n\t\t\t\tTEST_HOST = \"$(BUILT_PRODUCTS_DIR)/example.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/example\";\n\t\t\t};\n\t\t\tname = Profile;\n\t\t};\n\t\t338D0CE9231458BD00FA5F75 /* Profile */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\tALWAYS_SEARCH_USER_PATHS = NO;\n\t\t\t\tCLANG_ANALYZER_NONNULL = YES;\n\t\t\t\tCLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;\n\t\t\t\tCLANG_CXX_LANGUAGE_STANDARD = \"gnu++14\";\n\t\t\t\tCLANG_CXX_LIBRARY = \"libc++\";\n\t\t\t\tCLANG_ENABLE_MODULES = YES;\n\t\t\t\tCLANG_ENABLE_OBJC_ARC = YES;\n\t\t\t\tCLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;\n\t\t\t\tCLANG_WARN_BOOL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_CONSTANT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;\n\t\t\t\tCLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;\n\t\t\t\tCLANG_WARN_DOCUMENTATION_COMMENTS = YES;\n\t\t\t\tCLANG_WARN_EMPTY_BODY = YES;\n\t\t\t\tCLANG_WARN_ENUM_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_INFINITE_RECURSION = YES;\n\t\t\t\tCLANG_WARN_INT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_LITERAL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;\n\t\t\t\tCLANG_WARN_RANGE_LOOP_ANALYSIS = YES;\n\t\t\t\tCLANG_WARN_SUSPICIOUS_MOVE = YES;\n\t\t\t\tCODE_SIGN_IDENTITY = \"-\";\n\t\t\t\tCOPY_PHASE_STRIP = NO;\n\t\t\t\tDEBUG_INFORMATION_FORMAT = \"dwarf-with-dsym\";\n\t\t\t\tENABLE_NS_ASSERTIONS = NO;\n\t\t\t\tENABLE_STRICT_OBJC_MSGSEND = YES;\n\t\t\t\tGCC_C_LANGUAGE_STANDARD = gnu11;\n\t\t\t\tGCC_NO_COMMON_BLOCKS = YES;\n\t\t\t\tGCC_WARN_64_TO_32_BIT_CONVERSION = YES;\n\t\t\t\tGCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;\n\t\t\t\tGCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;\n\t\t\t\tGCC_WARN_UNUSED_FUNCTION = YES;\n\t\t\t\tGCC_WARN_UNUSED_VARIABLE = YES;\n\t\t\t\tMACOSX_DEPLOYMENT_TARGET = 10.14;\n\t\t\t\tMTL_ENABLE_DEBUG_INFO = NO;\n\t\t\t\tSDKROOT = macosx;\n\t\t\t\tSWIFT_COMPILATION_MODE = wholemodule;\n\t\t\t\tSWIFT_OPTIMIZATION_LEVEL = \"-O\";\n\t\t\t};\n\t\t\tname = Profile;\n\t\t};\n\t\t338D0CEA231458BD00FA5F75 /* Profile */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\tASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;\n\t\t\t\tCLANG_ENABLE_MODULES = YES;\n\t\t\t\tCODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements;\n\t\t\t\tCODE_SIGN_STYLE = Automatic;\n\t\t\t\tCOMBINE_HIDPI_IMAGES = YES;\n\t\t\t\tINFOPLIST_FILE = Runner/Info.plist;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = (\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t\t\"@executable_path/../Frameworks\",\n\t\t\t\t);\n\t\t\t\tPROVISIONING_PROFILE_SPECIFIER = \"\";\n\t\t\t\tSWIFT_VERSION = 5.0;\n\t\t\t};\n\t\t\tname = Profile;\n\t\t};\n\t\t338D0CEB231458BD00FA5F75 /* Profile */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tCODE_SIGN_STYLE = Manual;\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t};\n\t\t\tname = Profile;\n\t\t};\n\t\t33CC10F92044A3C60003C045 /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\tALWAYS_SEARCH_USER_PATHS = NO;\n\t\t\t\tCLANG_ANALYZER_NONNULL = YES;\n\t\t\t\tCLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;\n\t\t\t\tCLANG_CXX_LANGUAGE_STANDARD = \"gnu++14\";\n\t\t\t\tCLANG_CXX_LIBRARY = \"libc++\";\n\t\t\t\tCLANG_ENABLE_MODULES = YES;\n\t\t\t\tCLANG_ENABLE_OBJC_ARC = YES;\n\t\t\t\tCLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;\n\t\t\t\tCLANG_WARN_BOOL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_CONSTANT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;\n\t\t\t\tCLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;\n\t\t\t\tCLANG_WARN_DOCUMENTATION_COMMENTS = YES;\n\t\t\t\tCLANG_WARN_EMPTY_BODY = YES;\n\t\t\t\tCLANG_WARN_ENUM_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_INFINITE_RECURSION = YES;\n\t\t\t\tCLANG_WARN_INT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_LITERAL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;\n\t\t\t\tCLANG_WARN_RANGE_LOOP_ANALYSIS = YES;\n\t\t\t\tCLANG_WARN_SUSPICIOUS_MOVE = YES;\n\t\t\t\tCODE_SIGN_IDENTITY = \"-\";\n\t\t\t\tCOPY_PHASE_STRIP = NO;\n\t\t\t\tDEBUG_INFORMATION_FORMAT = dwarf;\n\t\t\t\tENABLE_STRICT_OBJC_MSGSEND = YES;\n\t\t\t\tENABLE_TESTABILITY = YES;\n\t\t\t\tGCC_C_LANGUAGE_STANDARD = gnu11;\n\t\t\t\tGCC_DYNAMIC_NO_PIC = NO;\n\t\t\t\tGCC_NO_COMMON_BLOCKS = YES;\n\t\t\t\tGCC_OPTIMIZATION_LEVEL = 0;\n\t\t\t\tGCC_PREPROCESSOR_DEFINITIONS = (\n\t\t\t\t\t\"DEBUG=1\",\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t);\n\t\t\t\tGCC_WARN_64_TO_32_BIT_CONVERSION = YES;\n\t\t\t\tGCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;\n\t\t\t\tGCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;\n\t\t\t\tGCC_WARN_UNUSED_FUNCTION = YES;\n\t\t\t\tGCC_WARN_UNUSED_VARIABLE = YES;\n\t\t\t\tMACOSX_DEPLOYMENT_TARGET = 10.14;\n\t\t\t\tMTL_ENABLE_DEBUG_INFO = YES;\n\t\t\t\tONLY_ACTIVE_ARCH = YES;\n\t\t\t\tSDKROOT = macosx;\n\t\t\t\tSWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;\n\t\t\t\tSWIFT_OPTIMIZATION_LEVEL = \"-Onone\";\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\t33CC10FA2044A3C60003C045 /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\tALWAYS_SEARCH_USER_PATHS = NO;\n\t\t\t\tCLANG_ANALYZER_NONNULL = YES;\n\t\t\t\tCLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;\n\t\t\t\tCLANG_CXX_LANGUAGE_STANDARD = \"gnu++14\";\n\t\t\t\tCLANG_CXX_LIBRARY = \"libc++\";\n\t\t\t\tCLANG_ENABLE_MODULES = YES;\n\t\t\t\tCLANG_ENABLE_OBJC_ARC = YES;\n\t\t\t\tCLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;\n\t\t\t\tCLANG_WARN_BOOL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_CONSTANT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;\n\t\t\t\tCLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;\n\t\t\t\tCLANG_WARN_DOCUMENTATION_COMMENTS = YES;\n\t\t\t\tCLANG_WARN_EMPTY_BODY = YES;\n\t\t\t\tCLANG_WARN_ENUM_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_INFINITE_RECURSION = YES;\n\t\t\t\tCLANG_WARN_INT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_LITERAL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;\n\t\t\t\tCLANG_WARN_RANGE_LOOP_ANALYSIS = YES;\n\t\t\t\tCLANG_WARN_SUSPICIOUS_MOVE = YES;\n\t\t\t\tCODE_SIGN_IDENTITY = \"-\";\n\t\t\t\tCOPY_PHASE_STRIP = NO;\n\t\t\t\tDEBUG_INFORMATION_FORMAT = \"dwarf-with-dsym\";\n\t\t\t\tENABLE_NS_ASSERTIONS = NO;\n\t\t\t\tENABLE_STRICT_OBJC_MSGSEND = YES;\n\t\t\t\tGCC_C_LANGUAGE_STANDARD = gnu11;\n\t\t\t\tGCC_NO_COMMON_BLOCKS = YES;\n\t\t\t\tGCC_WARN_64_TO_32_BIT_CONVERSION = YES;\n\t\t\t\tGCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;\n\t\t\t\tGCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;\n\t\t\t\tGCC_WARN_UNUSED_FUNCTION = YES;\n\t\t\t\tGCC_WARN_UNUSED_VARIABLE = YES;\n\t\t\t\tMACOSX_DEPLOYMENT_TARGET = 10.14;\n\t\t\t\tMTL_ENABLE_DEBUG_INFO = NO;\n\t\t\t\tSDKROOT = macosx;\n\t\t\t\tSWIFT_COMPILATION_MODE = wholemodule;\n\t\t\t\tSWIFT_OPTIMIZATION_LEVEL = \"-O\";\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n\t\t33CC10FC2044A3C60003C045 /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\tASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;\n\t\t\t\tCLANG_ENABLE_MODULES = YES;\n\t\t\t\tCODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements;\n\t\t\t\tCODE_SIGN_STYLE = Automatic;\n\t\t\t\tCOMBINE_HIDPI_IMAGES = YES;\n\t\t\t\tINFOPLIST_FILE = Runner/Info.plist;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = (\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t\t\"@executable_path/../Frameworks\",\n\t\t\t\t);\n\t\t\t\tPROVISIONING_PROFILE_SPECIFIER = \"\";\n\t\t\t\tSWIFT_OPTIMIZATION_LEVEL = \"-Onone\";\n\t\t\t\tSWIFT_VERSION = 5.0;\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\t33CC10FD2044A3C60003C045 /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\tASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;\n\t\t\t\tCLANG_ENABLE_MODULES = YES;\n\t\t\t\tCODE_SIGN_ENTITLEMENTS = Runner/Release.entitlements;\n\t\t\t\tCODE_SIGN_STYLE = Automatic;\n\t\t\t\tCOMBINE_HIDPI_IMAGES = YES;\n\t\t\t\tINFOPLIST_FILE = Runner/Info.plist;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = (\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t\t\"@executable_path/../Frameworks\",\n\t\t\t\t);\n\t\t\t\tPROVISIONING_PROFILE_SPECIFIER = \"\";\n\t\t\t\tSWIFT_VERSION = 5.0;\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n\t\t33CC111C2044C6BA0003C045 /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tCODE_SIGN_STYLE = Manual;\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\t33CC111D2044C6BA0003C045 /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tCODE_SIGN_STYLE = Automatic;\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n/* End XCBuildConfiguration section */\n\n/* Begin XCConfigurationList section */\n\t\t331C80DE294CF71000263BE5 /* Build configuration list for PBXNativeTarget \"RunnerTests\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\t331C80DB294CF71000263BE5 /* Debug */,\n\t\t\t\t331C80DC294CF71000263BE5 /* Release */,\n\t\t\t\t331C80DD294CF71000263BE5 /* Profile */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n\t\t33CC10E82044A3C60003C045 /* Build configuration list for PBXProject \"Runner\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\t33CC10F92044A3C60003C045 /* Debug */,\n\t\t\t\t33CC10FA2044A3C60003C045 /* Release */,\n\t\t\t\t338D0CE9231458BD00FA5F75 /* Profile */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n\t\t33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget \"Runner\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\t33CC10FC2044A3C60003C045 /* Debug */,\n\t\t\t\t33CC10FD2044A3C60003C045 /* Release */,\n\t\t\t\t338D0CEA231458BD00FA5F75 /* Profile */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n\t\t33CC111B2044C6BA0003C045 /* Build configuration list for PBXAggregateTarget \"Flutter Assemble\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\t33CC111C2044C6BA0003C045 /* Debug */,\n\t\t\t\t33CC111D2044C6BA0003C045 /* Release */,\n\t\t\t\t338D0CEB231458BD00FA5F75 /* Profile */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n/* End XCConfigurationList section */\n\t};\n\trootObject = 33CC10E52044A3C60003C045 /* Project object */;\n}\n"
  },
  {
    "path": "example/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>IDEDidComputeMac32BitWarning</key>\n\t<true/>\n</dict>\n</plist>\n"
  },
  {
    "path": "example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Scheme\n   LastUpgradeVersion = \"1430\"\n   version = \"1.3\">\n   <BuildAction\n      parallelizeBuildables = \"YES\"\n      buildImplicitDependencies = \"YES\">\n      <BuildActionEntries>\n         <BuildActionEntry\n            buildForTesting = \"YES\"\n            buildForRunning = \"YES\"\n            buildForProfiling = \"YES\"\n            buildForArchiving = \"YES\"\n            buildForAnalyzing = \"YES\">\n            <BuildableReference\n               BuildableIdentifier = \"primary\"\n               BlueprintIdentifier = \"33CC10EC2044A3C60003C045\"\n               BuildableName = \"example.app\"\n               BlueprintName = \"Runner\"\n               ReferencedContainer = \"container:Runner.xcodeproj\">\n            </BuildableReference>\n         </BuildActionEntry>\n      </BuildActionEntries>\n   </BuildAction>\n   <TestAction\n      buildConfiguration = \"Debug\"\n      selectedDebuggerIdentifier = \"Xcode.DebuggerFoundation.Debugger.LLDB\"\n      selectedLauncherIdentifier = \"Xcode.DebuggerFoundation.Launcher.LLDB\"\n      shouldUseLaunchSchemeArgsEnv = \"YES\">\n      <MacroExpansion>\n         <BuildableReference\n            BuildableIdentifier = \"primary\"\n            BlueprintIdentifier = \"33CC10EC2044A3C60003C045\"\n            BuildableName = \"example.app\"\n            BlueprintName = \"Runner\"\n            ReferencedContainer = \"container:Runner.xcodeproj\">\n         </BuildableReference>\n      </MacroExpansion>\n      <Testables>\n         <TestableReference\n            skipped = \"NO\"\n            parallelizable = \"YES\">\n            <BuildableReference\n               BuildableIdentifier = \"primary\"\n               BlueprintIdentifier = \"331C80D4294CF70F00263BE5\"\n               BuildableName = \"RunnerTests.xctest\"\n               BlueprintName = \"RunnerTests\"\n               ReferencedContainer = \"container:Runner.xcodeproj\">\n            </BuildableReference>\n         </TestableReference>\n      </Testables>\n   </TestAction>\n   <LaunchAction\n      buildConfiguration = \"Debug\"\n      selectedDebuggerIdentifier = \"Xcode.DebuggerFoundation.Debugger.LLDB\"\n      selectedLauncherIdentifier = \"Xcode.DebuggerFoundation.Launcher.LLDB\"\n      launchStyle = \"0\"\n      useCustomWorkingDirectory = \"NO\"\n      ignoresPersistentStateOnLaunch = \"NO\"\n      debugDocumentVersioning = \"YES\"\n      debugServiceExtension = \"internal\"\n      allowLocationSimulation = \"YES\">\n      <BuildableProductRunnable\n         runnableDebuggingMode = \"0\">\n         <BuildableReference\n            BuildableIdentifier = \"primary\"\n            BlueprintIdentifier = \"33CC10EC2044A3C60003C045\"\n            BuildableName = \"example.app\"\n            BlueprintName = \"Runner\"\n            ReferencedContainer = \"container:Runner.xcodeproj\">\n         </BuildableReference>\n      </BuildableProductRunnable>\n   </LaunchAction>\n   <ProfileAction\n      buildConfiguration = \"Profile\"\n      shouldUseLaunchSchemeArgsEnv = \"YES\"\n      savedToolIdentifier = \"\"\n      useCustomWorkingDirectory = \"NO\"\n      debugDocumentVersioning = \"YES\">\n      <BuildableProductRunnable\n         runnableDebuggingMode = \"0\">\n         <BuildableReference\n            BuildableIdentifier = \"primary\"\n            BlueprintIdentifier = \"33CC10EC2044A3C60003C045\"\n            BuildableName = \"example.app\"\n            BlueprintName = \"Runner\"\n            ReferencedContainer = \"container:Runner.xcodeproj\">\n         </BuildableReference>\n      </BuildableProductRunnable>\n   </ProfileAction>\n   <AnalyzeAction\n      buildConfiguration = \"Debug\">\n   </AnalyzeAction>\n   <ArchiveAction\n      buildConfiguration = \"Release\"\n      revealArchiveInOrganizer = \"YES\">\n   </ArchiveAction>\n</Scheme>\n"
  },
  {
    "path": "example/macos/Runner.xcworkspace/contents.xcworkspacedata",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Workspace\n   version = \"1.0\">\n   <FileRef\n      location = \"group:Runner.xcodeproj\">\n   </FileRef>\n</Workspace>\n"
  },
  {
    "path": "example/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>IDEDidComputeMac32BitWarning</key>\n\t<true/>\n</dict>\n</plist>\n"
  },
  {
    "path": "example/macos/RunnerTests/RunnerTests.swift",
    "content": "import FlutterMacOS\nimport Cocoa\nimport XCTest\n\nclass RunnerTests: XCTestCase {\n\n  func testExample() {\n    // If you add code to the Runner application, consider adding tests here.\n    // See https://developer.apple.com/documentation/xctest for more information about using XCTest.\n  }\n\n}\n"
  },
  {
    "path": "example/pubspec.yaml",
    "content": "name: example\ndescription: A new Flutter project.\n\n# The following line prevents the package from being accidentally published to\n# pub.dev using `pub publish`. This is preferred for private packages.\npublish_to: 'none' # Remove this line if you wish to publish to pub.dev\n\n# The following defines the version and build number for your application.\n# A version number is three numbers separated by dots, like 1.2.43\n# followed by an optional build number separated by a +.\n# Both the version and the builder number may be overridden in flutter\n# build by specifying --build-name and --build-number, respectively.\n# In Android, build-name is used as versionName while build-number used as versionCode.\n# Read more about Android versioning at https://developer.android.com/studio/publish/versioning\n# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.\n# Read more about iOS versioning at\n# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html\nversion: 1.0.0-dev.1\n\nenvironment:\n  sdk: '>=3.0.0 <4.0.0'\n\ndependencies:\n  flutter:\n    sdk: flutter\n  crop_your_image:\n    path: ../\n\n  # The following adds the Cupertino Icons font to your application.\n  # Use with the CupertinoIcons class for iOS style icons.\n  cupertino_icons: ^1.0.2\n\ndev_dependencies:\n  flutter_test:\n    sdk: flutter\n\n# For information on the generic Dart part of this file, see the\n# following page: https://dart.dev/tools/pub/pubspec\n\n# The following section is specific to Flutter.\nflutter:\n\n  # The following line ensures that the Material Icons font is\n  # included with your application, so that you can use the icons in\n  # the material Icons class.\n  uses-material-design: true\n\n  # To add assets to your application, add an assets section, like this:\n  assets:\n    - assets/images/\n\n  # An image asset can refer to one or more resolution-specific \"variants\", see\n  # https://flutter.dev/assets-and-images/#resolution-aware.\n\n  # For details regarding adding assets from package dependencies, see\n  # https://flutter.dev/assets-and-images/#from-packages\n\n  # To add custom fonts to your application, add a fonts section here,\n  # in this \"flutter\" section. Each entry in this list should have a\n  # \"family\" key with the font family name, and a \"fonts\" key with a\n  # list giving the asset and other descriptors for the font. For\n  # example:\n  # fonts:\n  #   - family: Schyler\n  #     fonts:\n  #       - asset: fonts/Schyler-Regular.ttf\n  #       - asset: fonts/Schyler-Italic.ttf\n  #         style: italic\n  #   - family: Trajan Pro\n  #     fonts:\n  #       - asset: fonts/TrajanPro.ttf\n  #       - asset: fonts/TrajanPro_Bold.ttf\n  #         weight: 700\n  #\n  # For details regarding fonts from package dependencies,\n  # see https://flutter.dev/custom-fonts/#from-packages\n"
  },
  {
    "path": "example/test/widget_test.dart",
    "content": "import 'package:crop_your_image/crop_your_image.dart';\nimport 'package:example/main.dart';\nimport 'package:flutter/material.dart';\nimport 'package:flutter_test/flutter_test.dart';\n\nvoid main() {\n  testWidgets('Show Crop', (tester) async {\n    await tester.pumpWidget(\n      MaterialApp(\n        home: Scaffold(\n          body: CropSample(),\n        ),\n      ),\n    );\n\n    await tester.pumpAndSettle();\n\n    expect(find.byType(Crop), findsOneWidget);\n  });\n}\n"
  },
  {
    "path": "example/web/index.html",
    "content": "<!DOCTYPE html>\n<html>\n<head>\n  <!--\n    If you are serving your web app in a path other than the root, change the\n    href value below to reflect the base path you are serving from.\n\n    The path provided below has to start and end with a slash \"/\" in order for\n    it to work correctly.\n\n    Fore more details:\n    * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base\n  -->\n  <base href=\"/\">\n\n  <meta charset=\"UTF-8\">\n  <meta content=\"IE=Edge\" http-equiv=\"X-UA-Compatible\">\n  <meta name=\"description\" content=\"A new Flutter project.\">\n\n  <!-- iOS meta tags & icons -->\n  <meta name=\"apple-mobile-web-app-capable\" content=\"yes\">\n  <meta name=\"apple-mobile-web-app-status-bar-style\" content=\"black\">\n  <meta name=\"apple-mobile-web-app-title\" content=\"example\">\n  <link rel=\"apple-touch-icon\" href=\"icons/Icon-192.png\">\n\n  <!-- Favicon -->\n  <link rel=\"icon\" type=\"image/png\" href=\"favicon.png\"/>\n\n  <title>example</title>\n  <link rel=\"manifest\" href=\"manifest.json\">\n</head>\n<body>\n  <!-- This script installs service_worker.js to provide PWA functionality to\n       application. For more information, see:\n       https://developers.google.com/web/fundamentals/primers/service-workers -->\n  <script>\n    if ('serviceWorker' in navigator) {\n      window.addEventListener('flutter-first-frame', function () {\n        navigator.serviceWorker.register('flutter_service_worker.js');\n      });\n    }\n  </script>\n  <script src=\"main.dart.js\" type=\"application/javascript\"></script>\n</body>\n</html>\n"
  },
  {
    "path": "example/web/manifest.json",
    "content": "{\n    \"name\": \"example\",\n    \"short_name\": \"example\",\n    \"start_url\": \".\",\n    \"display\": \"standalone\",\n    \"background_color\": \"#0175C2\",\n    \"theme_color\": \"#0175C2\",\n    \"description\": \"A new Flutter project.\",\n    \"orientation\": \"portrait-primary\",\n    \"prefer_related_applications\": false,\n    \"icons\": [\n        {\n            \"src\": \"icons/Icon-192.png\",\n            \"sizes\": \"192x192\",\n            \"type\": \"image/png\"\n        },\n        {\n            \"src\": \"icons/Icon-512.png\",\n            \"sizes\": \"512x512\",\n            \"type\": \"image/png\"\n        }\n    ]\n}\n"
  },
  {
    "path": "example/windows/.gitignore",
    "content": "flutter/ephemeral/\n\n# Visual Studio user-specific files.\n*.suo\n*.user\n*.userosscache\n*.sln.docstates\n\n# Visual Studio build-related files.\nx64/\nx86/\n\n# Visual Studio cache files\n# files ending in .cache can be ignored\n*.[Cc]ache\n# but keep track of directories ending in .cache\n!*.[Cc]ache/\n"
  },
  {
    "path": "example/windows/CMakeLists.txt",
    "content": "# Project-level configuration.\ncmake_minimum_required(VERSION 3.14)\nproject(example LANGUAGES CXX)\n\n# The name of the executable created for the application. Change this to change\n# the on-disk name of your application.\nset(BINARY_NAME \"example\")\n\n# Explicitly opt in to modern CMake behaviors to avoid warnings with recent\n# versions of CMake.\ncmake_policy(VERSION 3.14...3.25)\n\n# Define build configuration option.\nget_property(IS_MULTICONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)\nif(IS_MULTICONFIG)\n  set(CMAKE_CONFIGURATION_TYPES \"Debug;Profile;Release\"\n    CACHE STRING \"\" FORCE)\nelse()\n  if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)\n    set(CMAKE_BUILD_TYPE \"Debug\" CACHE\n      STRING \"Flutter build mode\" FORCE)\n    set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS\n      \"Debug\" \"Profile\" \"Release\")\n  endif()\nendif()\n# Define settings for the Profile build mode.\nset(CMAKE_EXE_LINKER_FLAGS_PROFILE \"${CMAKE_EXE_LINKER_FLAGS_RELEASE}\")\nset(CMAKE_SHARED_LINKER_FLAGS_PROFILE \"${CMAKE_SHARED_LINKER_FLAGS_RELEASE}\")\nset(CMAKE_C_FLAGS_PROFILE \"${CMAKE_C_FLAGS_RELEASE}\")\nset(CMAKE_CXX_FLAGS_PROFILE \"${CMAKE_CXX_FLAGS_RELEASE}\")\n\n# Use Unicode for all projects.\nadd_definitions(-DUNICODE -D_UNICODE)\n\n# Compilation settings that should be applied to most targets.\n#\n# Be cautious about adding new options here, as plugins use this function by\n# default. In most cases, you should add new options to specific targets instead\n# of modifying this function.\nfunction(APPLY_STANDARD_SETTINGS TARGET)\n  target_compile_features(${TARGET} PUBLIC cxx_std_17)\n  target_compile_options(${TARGET} PRIVATE /W4 /WX /wd\"4100\")\n  target_compile_options(${TARGET} PRIVATE /EHsc)\n  target_compile_definitions(${TARGET} PRIVATE \"_HAS_EXCEPTIONS=0\")\n  target_compile_definitions(${TARGET} PRIVATE \"$<$<CONFIG:Debug>:_DEBUG>\")\nendfunction()\n\n# Flutter library and tool build rules.\nset(FLUTTER_MANAGED_DIR \"${CMAKE_CURRENT_SOURCE_DIR}/flutter\")\nadd_subdirectory(${FLUTTER_MANAGED_DIR})\n\n# Application build; see runner/CMakeLists.txt.\nadd_subdirectory(\"runner\")\n\n\n# Generated plugin build rules, which manage building the plugins and adding\n# them to the application.\ninclude(flutter/generated_plugins.cmake)\n\n\n# === Installation ===\n# Support files are copied into place next to the executable, so that it can\n# run in place. This is done instead of making a separate bundle (as on Linux)\n# so that building and running from within Visual Studio will work.\nset(BUILD_BUNDLE_DIR \"$<TARGET_FILE_DIR:${BINARY_NAME}>\")\n# Make the \"install\" step default, as it's required to run.\nset(CMAKE_VS_INCLUDE_INSTALL_TO_DEFAULT_BUILD 1)\nif(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)\n  set(CMAKE_INSTALL_PREFIX \"${BUILD_BUNDLE_DIR}\" CACHE PATH \"...\" FORCE)\nendif()\n\nset(INSTALL_BUNDLE_DATA_DIR \"${CMAKE_INSTALL_PREFIX}/data\")\nset(INSTALL_BUNDLE_LIB_DIR \"${CMAKE_INSTALL_PREFIX}\")\n\ninstall(TARGETS ${BINARY_NAME} RUNTIME DESTINATION \"${CMAKE_INSTALL_PREFIX}\"\n  COMPONENT Runtime)\n\ninstall(FILES \"${FLUTTER_ICU_DATA_FILE}\" DESTINATION \"${INSTALL_BUNDLE_DATA_DIR}\"\n  COMPONENT Runtime)\n\ninstall(FILES \"${FLUTTER_LIBRARY}\" DESTINATION \"${INSTALL_BUNDLE_LIB_DIR}\"\n  COMPONENT Runtime)\n\nif(PLUGIN_BUNDLED_LIBRARIES)\n  install(FILES \"${PLUGIN_BUNDLED_LIBRARIES}\"\n    DESTINATION \"${INSTALL_BUNDLE_LIB_DIR}\"\n    COMPONENT Runtime)\nendif()\n\n# Copy the native assets provided by the build.dart from all packages.\nset(NATIVE_ASSETS_DIR \"${PROJECT_BUILD_DIR}native_assets/windows/\")\ninstall(DIRECTORY \"${NATIVE_ASSETS_DIR}\"\n   DESTINATION \"${INSTALL_BUNDLE_LIB_DIR}\"\n   COMPONENT Runtime)\n\n# Fully re-copy the assets directory on each build to avoid having stale files\n# from a previous install.\nset(FLUTTER_ASSET_DIR_NAME \"flutter_assets\")\ninstall(CODE \"\n  file(REMOVE_RECURSE \\\"${INSTALL_BUNDLE_DATA_DIR}/${FLUTTER_ASSET_DIR_NAME}\\\")\n  \" COMPONENT Runtime)\ninstall(DIRECTORY \"${PROJECT_BUILD_DIR}/${FLUTTER_ASSET_DIR_NAME}\"\n  DESTINATION \"${INSTALL_BUNDLE_DATA_DIR}\" COMPONENT Runtime)\n\n# Install the AOT library on non-Debug builds only.\ninstall(FILES \"${AOT_LIBRARY}\" DESTINATION \"${INSTALL_BUNDLE_DATA_DIR}\"\n  CONFIGURATIONS Profile;Release\n  COMPONENT Runtime)\n"
  },
  {
    "path": "example/windows/flutter/CMakeLists.txt",
    "content": "# This file controls Flutter-level build steps. It should not be edited.\ncmake_minimum_required(VERSION 3.14)\n\nset(EPHEMERAL_DIR \"${CMAKE_CURRENT_SOURCE_DIR}/ephemeral\")\n\n# Configuration provided via flutter tool.\ninclude(${EPHEMERAL_DIR}/generated_config.cmake)\n\n# TODO: Move the rest of this into files in ephemeral. See\n# https://github.com/flutter/flutter/issues/57146.\nset(WRAPPER_ROOT \"${EPHEMERAL_DIR}/cpp_client_wrapper\")\n\n# Set fallback configurations for older versions of the flutter tool.\nif (NOT DEFINED FLUTTER_TARGET_PLATFORM)\n  set(FLUTTER_TARGET_PLATFORM \"windows-x64\")\nendif()\n\n# === Flutter Library ===\nset(FLUTTER_LIBRARY \"${EPHEMERAL_DIR}/flutter_windows.dll\")\n\n# Published to parent scope for install step.\nset(FLUTTER_LIBRARY ${FLUTTER_LIBRARY} PARENT_SCOPE)\nset(FLUTTER_ICU_DATA_FILE \"${EPHEMERAL_DIR}/icudtl.dat\" PARENT_SCOPE)\nset(PROJECT_BUILD_DIR \"${PROJECT_DIR}/build/\" PARENT_SCOPE)\nset(AOT_LIBRARY \"${PROJECT_DIR}/build/windows/app.so\" PARENT_SCOPE)\n\nlist(APPEND FLUTTER_LIBRARY_HEADERS\n  \"flutter_export.h\"\n  \"flutter_windows.h\"\n  \"flutter_messenger.h\"\n  \"flutter_plugin_registrar.h\"\n  \"flutter_texture_registrar.h\"\n)\nlist(TRANSFORM FLUTTER_LIBRARY_HEADERS PREPEND \"${EPHEMERAL_DIR}/\")\nadd_library(flutter INTERFACE)\ntarget_include_directories(flutter INTERFACE\n  \"${EPHEMERAL_DIR}\"\n)\ntarget_link_libraries(flutter INTERFACE \"${FLUTTER_LIBRARY}.lib\")\nadd_dependencies(flutter flutter_assemble)\n\n# === Wrapper ===\nlist(APPEND CPP_WRAPPER_SOURCES_CORE\n  \"core_implementations.cc\"\n  \"standard_codec.cc\"\n)\nlist(TRANSFORM CPP_WRAPPER_SOURCES_CORE PREPEND \"${WRAPPER_ROOT}/\")\nlist(APPEND CPP_WRAPPER_SOURCES_PLUGIN\n  \"plugin_registrar.cc\"\n)\nlist(TRANSFORM CPP_WRAPPER_SOURCES_PLUGIN PREPEND \"${WRAPPER_ROOT}/\")\nlist(APPEND CPP_WRAPPER_SOURCES_APP\n  \"flutter_engine.cc\"\n  \"flutter_view_controller.cc\"\n)\nlist(TRANSFORM CPP_WRAPPER_SOURCES_APP PREPEND \"${WRAPPER_ROOT}/\")\n\n# Wrapper sources needed for a plugin.\nadd_library(flutter_wrapper_plugin STATIC\n  ${CPP_WRAPPER_SOURCES_CORE}\n  ${CPP_WRAPPER_SOURCES_PLUGIN}\n)\napply_standard_settings(flutter_wrapper_plugin)\nset_target_properties(flutter_wrapper_plugin PROPERTIES\n  POSITION_INDEPENDENT_CODE ON)\nset_target_properties(flutter_wrapper_plugin PROPERTIES\n  CXX_VISIBILITY_PRESET hidden)\ntarget_link_libraries(flutter_wrapper_plugin PUBLIC flutter)\ntarget_include_directories(flutter_wrapper_plugin PUBLIC\n  \"${WRAPPER_ROOT}/include\"\n)\nadd_dependencies(flutter_wrapper_plugin flutter_assemble)\n\n# Wrapper sources needed for the runner.\nadd_library(flutter_wrapper_app STATIC\n  ${CPP_WRAPPER_SOURCES_CORE}\n  ${CPP_WRAPPER_SOURCES_APP}\n)\napply_standard_settings(flutter_wrapper_app)\ntarget_link_libraries(flutter_wrapper_app PUBLIC flutter)\ntarget_include_directories(flutter_wrapper_app PUBLIC\n  \"${WRAPPER_ROOT}/include\"\n)\nadd_dependencies(flutter_wrapper_app flutter_assemble)\n\n# === Flutter tool backend ===\n# _phony_ is a non-existent file to force this command to run every time,\n# since currently there's no way to get a full input/output list from the\n# flutter tool.\nset(PHONY_OUTPUT \"${CMAKE_CURRENT_BINARY_DIR}/_phony_\")\nset_source_files_properties(\"${PHONY_OUTPUT}\" PROPERTIES SYMBOLIC TRUE)\nadd_custom_command(\n  OUTPUT ${FLUTTER_LIBRARY} ${FLUTTER_LIBRARY_HEADERS}\n    ${CPP_WRAPPER_SOURCES_CORE} ${CPP_WRAPPER_SOURCES_PLUGIN}\n    ${CPP_WRAPPER_SOURCES_APP}\n    ${PHONY_OUTPUT}\n  COMMAND ${CMAKE_COMMAND} -E env\n    ${FLUTTER_TOOL_ENVIRONMENT}\n    \"${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.bat\"\n      ${FLUTTER_TARGET_PLATFORM} $<CONFIG>\n  VERBATIM\n)\nadd_custom_target(flutter_assemble DEPENDS\n  \"${FLUTTER_LIBRARY}\"\n  ${FLUTTER_LIBRARY_HEADERS}\n  ${CPP_WRAPPER_SOURCES_CORE}\n  ${CPP_WRAPPER_SOURCES_PLUGIN}\n  ${CPP_WRAPPER_SOURCES_APP}\n)\n"
  },
  {
    "path": "example/windows/flutter/generated_plugin_registrant.cc",
    "content": "//\n//  Generated file. Do not edit.\n//\n\n// clang-format off\n\n#include \"generated_plugin_registrant.h\"\n\n\nvoid RegisterPlugins(flutter::PluginRegistry* registry) {\n}\n"
  },
  {
    "path": "example/windows/flutter/generated_plugin_registrant.h",
    "content": "//\n//  Generated file. Do not edit.\n//\n\n// clang-format off\n\n#ifndef GENERATED_PLUGIN_REGISTRANT_\n#define GENERATED_PLUGIN_REGISTRANT_\n\n#include <flutter/plugin_registry.h>\n\n// Registers Flutter plugins.\nvoid RegisterPlugins(flutter::PluginRegistry* registry);\n\n#endif  // GENERATED_PLUGIN_REGISTRANT_\n"
  },
  {
    "path": "example/windows/flutter/generated_plugins.cmake",
    "content": "#\n# Generated file, do not edit.\n#\n\nlist(APPEND FLUTTER_PLUGIN_LIST\n)\n\nlist(APPEND FLUTTER_FFI_PLUGIN_LIST\n)\n\nset(PLUGIN_BUNDLED_LIBRARIES)\n\nforeach(plugin ${FLUTTER_PLUGIN_LIST})\n  add_subdirectory(flutter/ephemeral/.plugin_symlinks/${plugin}/windows plugins/${plugin})\n  target_link_libraries(${BINARY_NAME} PRIVATE ${plugin}_plugin)\n  list(APPEND PLUGIN_BUNDLED_LIBRARIES $<TARGET_FILE:${plugin}_plugin>)\n  list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries})\nendforeach(plugin)\n\nforeach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST})\n  add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/windows plugins/${ffi_plugin})\n  list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries})\nendforeach(ffi_plugin)\n"
  },
  {
    "path": "example/windows/runner/CMakeLists.txt",
    "content": "cmake_minimum_required(VERSION 3.14)\nproject(runner LANGUAGES CXX)\n\n# Define the application target. To change its name, change BINARY_NAME in the\n# top-level CMakeLists.txt, not the value here, or `flutter run` will no longer\n# work.\n#\n# Any new source files that you add to the application should be added here.\nadd_executable(${BINARY_NAME} WIN32\n  \"flutter_window.cpp\"\n  \"main.cpp\"\n  \"utils.cpp\"\n  \"win32_window.cpp\"\n  \"${FLUTTER_MANAGED_DIR}/generated_plugin_registrant.cc\"\n  \"Runner.rc\"\n  \"runner.exe.manifest\"\n)\n\n# Apply the standard set of build settings. This can be removed for applications\n# that need different build settings.\napply_standard_settings(${BINARY_NAME})\n\n# Add preprocessor definitions for the build version.\ntarget_compile_definitions(${BINARY_NAME} PRIVATE \"FLUTTER_VERSION=\\\"${FLUTTER_VERSION}\\\"\")\ntarget_compile_definitions(${BINARY_NAME} PRIVATE \"FLUTTER_VERSION_MAJOR=${FLUTTER_VERSION_MAJOR}\")\ntarget_compile_definitions(${BINARY_NAME} PRIVATE \"FLUTTER_VERSION_MINOR=${FLUTTER_VERSION_MINOR}\")\ntarget_compile_definitions(${BINARY_NAME} PRIVATE \"FLUTTER_VERSION_PATCH=${FLUTTER_VERSION_PATCH}\")\ntarget_compile_definitions(${BINARY_NAME} PRIVATE \"FLUTTER_VERSION_BUILD=${FLUTTER_VERSION_BUILD}\")\n\n# Disable Windows macros that collide with C++ standard library functions.\ntarget_compile_definitions(${BINARY_NAME} PRIVATE \"NOMINMAX\")\n\n# Add dependency libraries and include directories. Add any application-specific\n# dependencies here.\ntarget_link_libraries(${BINARY_NAME} PRIVATE flutter flutter_wrapper_app)\ntarget_link_libraries(${BINARY_NAME} PRIVATE \"dwmapi.lib\")\ntarget_include_directories(${BINARY_NAME} PRIVATE \"${CMAKE_SOURCE_DIR}\")\n\n# Run the Flutter tool portions of the build. This must not be removed.\nadd_dependencies(${BINARY_NAME} flutter_assemble)\n"
  },
  {
    "path": "example/windows/runner/Runner.rc",
    "content": "// Microsoft Visual C++ generated resource script.\n//\n#pragma code_page(65001)\n#include \"resource.h\"\n\n#define APSTUDIO_READONLY_SYMBOLS\n/////////////////////////////////////////////////////////////////////////////\n//\n// Generated from the TEXTINCLUDE 2 resource.\n//\n#include \"winres.h\"\n\n/////////////////////////////////////////////////////////////////////////////\n#undef APSTUDIO_READONLY_SYMBOLS\n\n/////////////////////////////////////////////////////////////////////////////\n// English (United States) resources\n\n#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)\nLANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US\n\n#ifdef APSTUDIO_INVOKED\n/////////////////////////////////////////////////////////////////////////////\n//\n// TEXTINCLUDE\n//\n\n1 TEXTINCLUDE\nBEGIN\n    \"resource.h\\0\"\nEND\n\n2 TEXTINCLUDE\nBEGIN\n    \"#include \"\"winres.h\"\"\\r\\n\"\n    \"\\0\"\nEND\n\n3 TEXTINCLUDE\nBEGIN\n    \"\\r\\n\"\n    \"\\0\"\nEND\n\n#endif    // APSTUDIO_INVOKED\n\n\n/////////////////////////////////////////////////////////////////////////////\n//\n// Icon\n//\n\n// Icon with lowest ID value placed first to ensure application icon\n// remains consistent on all systems.\nIDI_APP_ICON            ICON                    \"resources\\\\app_icon.ico\"\n\n\n/////////////////////////////////////////////////////////////////////////////\n//\n// Version\n//\n\n#if defined(FLUTTER_VERSION_MAJOR) && defined(FLUTTER_VERSION_MINOR) && defined(FLUTTER_VERSION_PATCH) && defined(FLUTTER_VERSION_BUILD)\n#define VERSION_AS_NUMBER FLUTTER_VERSION_MAJOR,FLUTTER_VERSION_MINOR,FLUTTER_VERSION_PATCH,FLUTTER_VERSION_BUILD\n#else\n#define VERSION_AS_NUMBER 1,0,0,0\n#endif\n\n#if defined(FLUTTER_VERSION)\n#define VERSION_AS_STRING FLUTTER_VERSION\n#else\n#define VERSION_AS_STRING \"1.0.0\"\n#endif\n\nVS_VERSION_INFO VERSIONINFO\n FILEVERSION VERSION_AS_NUMBER\n PRODUCTVERSION VERSION_AS_NUMBER\n FILEFLAGSMASK VS_FFI_FILEFLAGSMASK\n#ifdef _DEBUG\n FILEFLAGS VS_FF_DEBUG\n#else\n FILEFLAGS 0x0L\n#endif\n FILEOS VOS__WINDOWS32\n FILETYPE VFT_APP\n FILESUBTYPE 0x0L\nBEGIN\n    BLOCK \"StringFileInfo\"\n    BEGIN\n        BLOCK \"040904e4\"\n        BEGIN\n            VALUE \"CompanyName\", \"com.example\" \"\\0\"\n            VALUE \"FileDescription\", \"example\" \"\\0\"\n            VALUE \"FileVersion\", VERSION_AS_STRING \"\\0\"\n            VALUE \"InternalName\", \"example\" \"\\0\"\n            VALUE \"LegalCopyright\", \"Copyright (C) 2024 com.example. All rights reserved.\" \"\\0\"\n            VALUE \"OriginalFilename\", \"example.exe\" \"\\0\"\n            VALUE \"ProductName\", \"example\" \"\\0\"\n            VALUE \"ProductVersion\", VERSION_AS_STRING \"\\0\"\n        END\n    END\n    BLOCK \"VarFileInfo\"\n    BEGIN\n        VALUE \"Translation\", 0x409, 1252\n    END\nEND\n\n#endif    // English (United States) resources\n/////////////////////////////////////////////////////////////////////////////\n\n\n\n#ifndef APSTUDIO_INVOKED\n/////////////////////////////////////////////////////////////////////////////\n//\n// Generated from the TEXTINCLUDE 3 resource.\n//\n\n\n/////////////////////////////////////////////////////////////////////////////\n#endif    // not APSTUDIO_INVOKED\n"
  },
  {
    "path": "example/windows/runner/flutter_window.cpp",
    "content": "#include \"flutter_window.h\"\n\n#include <optional>\n\n#include \"flutter/generated_plugin_registrant.h\"\n\nFlutterWindow::FlutterWindow(const flutter::DartProject& project)\n    : project_(project) {}\n\nFlutterWindow::~FlutterWindow() {}\n\nbool FlutterWindow::OnCreate() {\n  if (!Win32Window::OnCreate()) {\n    return false;\n  }\n\n  RECT frame = GetClientArea();\n\n  // The size here must match the window dimensions to avoid unnecessary surface\n  // creation / destruction in the startup path.\n  flutter_controller_ = std::make_unique<flutter::FlutterViewController>(\n      frame.right - frame.left, frame.bottom - frame.top, project_);\n  // Ensure that basic setup of the controller was successful.\n  if (!flutter_controller_->engine() || !flutter_controller_->view()) {\n    return false;\n  }\n  RegisterPlugins(flutter_controller_->engine());\n  SetChildContent(flutter_controller_->view()->GetNativeWindow());\n\n  flutter_controller_->engine()->SetNextFrameCallback([&]() {\n    this->Show();\n  });\n\n  // Flutter can complete the first frame before the \"show window\" callback is\n  // registered. The following call ensures a frame is pending to ensure the\n  // window is shown. It is a no-op if the first frame hasn't completed yet.\n  flutter_controller_->ForceRedraw();\n\n  return true;\n}\n\nvoid FlutterWindow::OnDestroy() {\n  if (flutter_controller_) {\n    flutter_controller_ = nullptr;\n  }\n\n  Win32Window::OnDestroy();\n}\n\nLRESULT\nFlutterWindow::MessageHandler(HWND hwnd, UINT const message,\n                              WPARAM const wparam,\n                              LPARAM const lparam) noexcept {\n  // Give Flutter, including plugins, an opportunity to handle window messages.\n  if (flutter_controller_) {\n    std::optional<LRESULT> result =\n        flutter_controller_->HandleTopLevelWindowProc(hwnd, message, wparam,\n                                                      lparam);\n    if (result) {\n      return *result;\n    }\n  }\n\n  switch (message) {\n    case WM_FONTCHANGE:\n      flutter_controller_->engine()->ReloadSystemFonts();\n      break;\n  }\n\n  return Win32Window::MessageHandler(hwnd, message, wparam, lparam);\n}\n"
  },
  {
    "path": "example/windows/runner/flutter_window.h",
    "content": "#ifndef RUNNER_FLUTTER_WINDOW_H_\n#define RUNNER_FLUTTER_WINDOW_H_\n\n#include <flutter/dart_project.h>\n#include <flutter/flutter_view_controller.h>\n\n#include <memory>\n\n#include \"win32_window.h\"\n\n// A window that does nothing but host a Flutter view.\nclass FlutterWindow : public Win32Window {\n public:\n  // Creates a new FlutterWindow hosting a Flutter view running |project|.\n  explicit FlutterWindow(const flutter::DartProject& project);\n  virtual ~FlutterWindow();\n\n protected:\n  // Win32Window:\n  bool OnCreate() override;\n  void OnDestroy() override;\n  LRESULT MessageHandler(HWND window, UINT const message, WPARAM const wparam,\n                         LPARAM const lparam) noexcept override;\n\n private:\n  // The project to run.\n  flutter::DartProject project_;\n\n  // The Flutter instance hosted by this window.\n  std::unique_ptr<flutter::FlutterViewController> flutter_controller_;\n};\n\n#endif  // RUNNER_FLUTTER_WINDOW_H_\n"
  },
  {
    "path": "example/windows/runner/main.cpp",
    "content": "#include <flutter/dart_project.h>\n#include <flutter/flutter_view_controller.h>\n#include <windows.h>\n\n#include \"flutter_window.h\"\n#include \"utils.h\"\n\nint APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev,\n                      _In_ wchar_t *command_line, _In_ int show_command) {\n  // Attach to console when present (e.g., 'flutter run') or create a\n  // new console when running with a debugger.\n  if (!::AttachConsole(ATTACH_PARENT_PROCESS) && ::IsDebuggerPresent()) {\n    CreateAndAttachConsole();\n  }\n\n  // Initialize COM, so that it is available for use in the library and/or\n  // plugins.\n  ::CoInitializeEx(nullptr, COINIT_APARTMENTTHREADED);\n\n  flutter::DartProject project(L\"data\");\n\n  std::vector<std::string> command_line_arguments =\n      GetCommandLineArguments();\n\n  project.set_dart_entrypoint_arguments(std::move(command_line_arguments));\n\n  FlutterWindow window(project);\n  Win32Window::Point origin(10, 10);\n  Win32Window::Size size(1280, 720);\n  if (!window.Create(L\"example\", origin, size)) {\n    return EXIT_FAILURE;\n  }\n  window.SetQuitOnClose(true);\n\n  ::MSG msg;\n  while (::GetMessage(&msg, nullptr, 0, 0)) {\n    ::TranslateMessage(&msg);\n    ::DispatchMessage(&msg);\n  }\n\n  ::CoUninitialize();\n  return EXIT_SUCCESS;\n}\n"
  },
  {
    "path": "example/windows/runner/resource.h",
    "content": "//{{NO_DEPENDENCIES}}\n// Microsoft Visual C++ generated include file.\n// Used by Runner.rc\n//\n#define IDI_APP_ICON                    101\n\n// Next default values for new objects\n//\n#ifdef APSTUDIO_INVOKED\n#ifndef APSTUDIO_READONLY_SYMBOLS\n#define _APS_NEXT_RESOURCE_VALUE        102\n#define _APS_NEXT_COMMAND_VALUE         40001\n#define _APS_NEXT_CONTROL_VALUE         1001\n#define _APS_NEXT_SYMED_VALUE           101\n#endif\n#endif\n"
  },
  {
    "path": "example/windows/runner/runner.exe.manifest",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<assembly xmlns=\"urn:schemas-microsoft-com:asm.v1\" manifestVersion=\"1.0\">\n  <application xmlns=\"urn:schemas-microsoft-com:asm.v3\">\n    <windowsSettings>\n      <dpiAwareness xmlns=\"http://schemas.microsoft.com/SMI/2016/WindowsSettings\">PerMonitorV2</dpiAwareness>\n    </windowsSettings>\n  </application>\n  <compatibility xmlns=\"urn:schemas-microsoft-com:compatibility.v1\">\n    <application>\n      <!-- Windows 10 and Windows 11 -->\n      <supportedOS Id=\"{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}\"/>\n      <!-- Windows 8.1 -->\n      <supportedOS Id=\"{1f676c76-80e1-4239-95bb-83d0f6d0da78}\"/>\n      <!-- Windows 8 -->\n      <supportedOS Id=\"{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}\"/>\n      <!-- Windows 7 -->\n      <supportedOS Id=\"{35138b9a-5d96-4fbd-8e2d-a2440225f93a}\"/>\n    </application>\n  </compatibility>\n</assembly>\n"
  },
  {
    "path": "example/windows/runner/utils.cpp",
    "content": "#include \"utils.h\"\n\n#include <flutter_windows.h>\n#include <io.h>\n#include <stdio.h>\n#include <windows.h>\n\n#include <iostream>\n\nvoid CreateAndAttachConsole() {\n  if (::AllocConsole()) {\n    FILE *unused;\n    if (freopen_s(&unused, \"CONOUT$\", \"w\", stdout)) {\n      _dup2(_fileno(stdout), 1);\n    }\n    if (freopen_s(&unused, \"CONOUT$\", \"w\", stderr)) {\n      _dup2(_fileno(stdout), 2);\n    }\n    std::ios::sync_with_stdio();\n    FlutterDesktopResyncOutputStreams();\n  }\n}\n\nstd::vector<std::string> GetCommandLineArguments() {\n  // Convert the UTF-16 command line arguments to UTF-8 for the Engine to use.\n  int argc;\n  wchar_t** argv = ::CommandLineToArgvW(::GetCommandLineW(), &argc);\n  if (argv == nullptr) {\n    return std::vector<std::string>();\n  }\n\n  std::vector<std::string> command_line_arguments;\n\n  // Skip the first argument as it's the binary name.\n  for (int i = 1; i < argc; i++) {\n    command_line_arguments.push_back(Utf8FromUtf16(argv[i]));\n  }\n\n  ::LocalFree(argv);\n\n  return command_line_arguments;\n}\n\nstd::string Utf8FromUtf16(const wchar_t* utf16_string) {\n  if (utf16_string == nullptr) {\n    return std::string();\n  }\n  int target_length = ::WideCharToMultiByte(\n      CP_UTF8, WC_ERR_INVALID_CHARS, utf16_string,\n      -1, nullptr, 0, nullptr, nullptr)\n    -1; // remove the trailing null character\n  int input_length = (int)wcslen(utf16_string);\n  std::string utf8_string;\n  if (target_length <= 0 || target_length > utf8_string.max_size()) {\n    return utf8_string;\n  }\n  utf8_string.resize(target_length);\n  int converted_length = ::WideCharToMultiByte(\n      CP_UTF8, WC_ERR_INVALID_CHARS, utf16_string,\n      input_length, utf8_string.data(), target_length, nullptr, nullptr);\n  if (converted_length == 0) {\n    return std::string();\n  }\n  return utf8_string;\n}\n"
  },
  {
    "path": "example/windows/runner/utils.h",
    "content": "#ifndef RUNNER_UTILS_H_\n#define RUNNER_UTILS_H_\n\n#include <string>\n#include <vector>\n\n// Creates a console for the process, and redirects stdout and stderr to\n// it for both the runner and the Flutter library.\nvoid CreateAndAttachConsole();\n\n// Takes a null-terminated wchar_t* encoded in UTF-16 and returns a std::string\n// encoded in UTF-8. Returns an empty std::string on failure.\nstd::string Utf8FromUtf16(const wchar_t* utf16_string);\n\n// Gets the command line arguments passed in as a std::vector<std::string>,\n// encoded in UTF-8. Returns an empty std::vector<std::string> on failure.\nstd::vector<std::string> GetCommandLineArguments();\n\n#endif  // RUNNER_UTILS_H_\n"
  },
  {
    "path": "example/windows/runner/win32_window.cpp",
    "content": "#include \"win32_window.h\"\n\n#include <dwmapi.h>\n#include <flutter_windows.h>\n\n#include \"resource.h\"\n\nnamespace {\n\n/// Window attribute that enables dark mode window decorations.\n///\n/// Redefined in case the developer's machine has a Windows SDK older than\n/// version 10.0.22000.0.\n/// See: https://docs.microsoft.com/windows/win32/api/dwmapi/ne-dwmapi-dwmwindowattribute\n#ifndef DWMWA_USE_IMMERSIVE_DARK_MODE\n#define DWMWA_USE_IMMERSIVE_DARK_MODE 20\n#endif\n\nconstexpr const wchar_t kWindowClassName[] = L\"FLUTTER_RUNNER_WIN32_WINDOW\";\n\n/// Registry key for app theme preference.\n///\n/// A value of 0 indicates apps should use dark mode. A non-zero or missing\n/// value indicates apps should use light mode.\nconstexpr const wchar_t kGetPreferredBrightnessRegKey[] =\n  L\"Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Themes\\\\Personalize\";\nconstexpr const wchar_t kGetPreferredBrightnessRegValue[] = L\"AppsUseLightTheme\";\n\n// The number of Win32Window objects that currently exist.\nstatic int g_active_window_count = 0;\n\nusing EnableNonClientDpiScaling = BOOL __stdcall(HWND hwnd);\n\n// Scale helper to convert logical scaler values to physical using passed in\n// scale factor\nint Scale(int source, double scale_factor) {\n  return static_cast<int>(source * scale_factor);\n}\n\n// Dynamically loads the |EnableNonClientDpiScaling| from the User32 module.\n// This API is only needed for PerMonitor V1 awareness mode.\nvoid EnableFullDpiSupportIfAvailable(HWND hwnd) {\n  HMODULE user32_module = LoadLibraryA(\"User32.dll\");\n  if (!user32_module) {\n    return;\n  }\n  auto enable_non_client_dpi_scaling =\n      reinterpret_cast<EnableNonClientDpiScaling*>(\n          GetProcAddress(user32_module, \"EnableNonClientDpiScaling\"));\n  if (enable_non_client_dpi_scaling != nullptr) {\n    enable_non_client_dpi_scaling(hwnd);\n  }\n  FreeLibrary(user32_module);\n}\n\n}  // namespace\n\n// Manages the Win32Window's window class registration.\nclass WindowClassRegistrar {\n public:\n  ~WindowClassRegistrar() = default;\n\n  // Returns the singleton registrar instance.\n  static WindowClassRegistrar* GetInstance() {\n    if (!instance_) {\n      instance_ = new WindowClassRegistrar();\n    }\n    return instance_;\n  }\n\n  // Returns the name of the window class, registering the class if it hasn't\n  // previously been registered.\n  const wchar_t* GetWindowClass();\n\n  // Unregisters the window class. Should only be called if there are no\n  // instances of the window.\n  void UnregisterWindowClass();\n\n private:\n  WindowClassRegistrar() = default;\n\n  static WindowClassRegistrar* instance_;\n\n  bool class_registered_ = false;\n};\n\nWindowClassRegistrar* WindowClassRegistrar::instance_ = nullptr;\n\nconst wchar_t* WindowClassRegistrar::GetWindowClass() {\n  if (!class_registered_) {\n    WNDCLASS window_class{};\n    window_class.hCursor = LoadCursor(nullptr, IDC_ARROW);\n    window_class.lpszClassName = kWindowClassName;\n    window_class.style = CS_HREDRAW | CS_VREDRAW;\n    window_class.cbClsExtra = 0;\n    window_class.cbWndExtra = 0;\n    window_class.hInstance = GetModuleHandle(nullptr);\n    window_class.hIcon =\n        LoadIcon(window_class.hInstance, MAKEINTRESOURCE(IDI_APP_ICON));\n    window_class.hbrBackground = 0;\n    window_class.lpszMenuName = nullptr;\n    window_class.lpfnWndProc = Win32Window::WndProc;\n    RegisterClass(&window_class);\n    class_registered_ = true;\n  }\n  return kWindowClassName;\n}\n\nvoid WindowClassRegistrar::UnregisterWindowClass() {\n  UnregisterClass(kWindowClassName, nullptr);\n  class_registered_ = false;\n}\n\nWin32Window::Win32Window() {\n  ++g_active_window_count;\n}\n\nWin32Window::~Win32Window() {\n  --g_active_window_count;\n  Destroy();\n}\n\nbool Win32Window::Create(const std::wstring& title,\n                         const Point& origin,\n                         const Size& size) {\n  Destroy();\n\n  const wchar_t* window_class =\n      WindowClassRegistrar::GetInstance()->GetWindowClass();\n\n  const POINT target_point = {static_cast<LONG>(origin.x),\n                              static_cast<LONG>(origin.y)};\n  HMONITOR monitor = MonitorFromPoint(target_point, MONITOR_DEFAULTTONEAREST);\n  UINT dpi = FlutterDesktopGetDpiForMonitor(monitor);\n  double scale_factor = dpi / 96.0;\n\n  HWND window = CreateWindow(\n      window_class, title.c_str(), WS_OVERLAPPEDWINDOW,\n      Scale(origin.x, scale_factor), Scale(origin.y, scale_factor),\n      Scale(size.width, scale_factor), Scale(size.height, scale_factor),\n      nullptr, nullptr, GetModuleHandle(nullptr), this);\n\n  if (!window) {\n    return false;\n  }\n\n  UpdateTheme(window);\n\n  return OnCreate();\n}\n\nbool Win32Window::Show() {\n  return ShowWindow(window_handle_, SW_SHOWNORMAL);\n}\n\n// static\nLRESULT CALLBACK Win32Window::WndProc(HWND const window,\n                                      UINT const message,\n                                      WPARAM const wparam,\n                                      LPARAM const lparam) noexcept {\n  if (message == WM_NCCREATE) {\n    auto window_struct = reinterpret_cast<CREATESTRUCT*>(lparam);\n    SetWindowLongPtr(window, GWLP_USERDATA,\n                     reinterpret_cast<LONG_PTR>(window_struct->lpCreateParams));\n\n    auto that = static_cast<Win32Window*>(window_struct->lpCreateParams);\n    EnableFullDpiSupportIfAvailable(window);\n    that->window_handle_ = window;\n  } else if (Win32Window* that = GetThisFromHandle(window)) {\n    return that->MessageHandler(window, message, wparam, lparam);\n  }\n\n  return DefWindowProc(window, message, wparam, lparam);\n}\n\nLRESULT\nWin32Window::MessageHandler(HWND hwnd,\n                            UINT const message,\n                            WPARAM const wparam,\n                            LPARAM const lparam) noexcept {\n  switch (message) {\n    case WM_DESTROY:\n      window_handle_ = nullptr;\n      Destroy();\n      if (quit_on_close_) {\n        PostQuitMessage(0);\n      }\n      return 0;\n\n    case WM_DPICHANGED: {\n      auto newRectSize = reinterpret_cast<RECT*>(lparam);\n      LONG newWidth = newRectSize->right - newRectSize->left;\n      LONG newHeight = newRectSize->bottom - newRectSize->top;\n\n      SetWindowPos(hwnd, nullptr, newRectSize->left, newRectSize->top, newWidth,\n                   newHeight, SWP_NOZORDER | SWP_NOACTIVATE);\n\n      return 0;\n    }\n    case WM_SIZE: {\n      RECT rect = GetClientArea();\n      if (child_content_ != nullptr) {\n        // Size and position the child window.\n        MoveWindow(child_content_, rect.left, rect.top, rect.right - rect.left,\n                   rect.bottom - rect.top, TRUE);\n      }\n      return 0;\n    }\n\n    case WM_ACTIVATE:\n      if (child_content_ != nullptr) {\n        SetFocus(child_content_);\n      }\n      return 0;\n\n    case WM_DWMCOLORIZATIONCOLORCHANGED:\n      UpdateTheme(hwnd);\n      return 0;\n  }\n\n  return DefWindowProc(window_handle_, message, wparam, lparam);\n}\n\nvoid Win32Window::Destroy() {\n  OnDestroy();\n\n  if (window_handle_) {\n    DestroyWindow(window_handle_);\n    window_handle_ = nullptr;\n  }\n  if (g_active_window_count == 0) {\n    WindowClassRegistrar::GetInstance()->UnregisterWindowClass();\n  }\n}\n\nWin32Window* Win32Window::GetThisFromHandle(HWND const window) noexcept {\n  return reinterpret_cast<Win32Window*>(\n      GetWindowLongPtr(window, GWLP_USERDATA));\n}\n\nvoid Win32Window::SetChildContent(HWND content) {\n  child_content_ = content;\n  SetParent(content, window_handle_);\n  RECT frame = GetClientArea();\n\n  MoveWindow(content, frame.left, frame.top, frame.right - frame.left,\n             frame.bottom - frame.top, true);\n\n  SetFocus(child_content_);\n}\n\nRECT Win32Window::GetClientArea() {\n  RECT frame;\n  GetClientRect(window_handle_, &frame);\n  return frame;\n}\n\nHWND Win32Window::GetHandle() {\n  return window_handle_;\n}\n\nvoid Win32Window::SetQuitOnClose(bool quit_on_close) {\n  quit_on_close_ = quit_on_close;\n}\n\nbool Win32Window::OnCreate() {\n  // No-op; provided for subclasses.\n  return true;\n}\n\nvoid Win32Window::OnDestroy() {\n  // No-op; provided for subclasses.\n}\n\nvoid Win32Window::UpdateTheme(HWND const window) {\n  DWORD light_mode;\n  DWORD light_mode_size = sizeof(light_mode);\n  LSTATUS result = RegGetValue(HKEY_CURRENT_USER, kGetPreferredBrightnessRegKey,\n                               kGetPreferredBrightnessRegValue,\n                               RRF_RT_REG_DWORD, nullptr, &light_mode,\n                               &light_mode_size);\n\n  if (result == ERROR_SUCCESS) {\n    BOOL enable_dark_mode = light_mode == 0;\n    DwmSetWindowAttribute(window, DWMWA_USE_IMMERSIVE_DARK_MODE,\n                          &enable_dark_mode, sizeof(enable_dark_mode));\n  }\n}\n"
  },
  {
    "path": "example/windows/runner/win32_window.h",
    "content": "#ifndef RUNNER_WIN32_WINDOW_H_\n#define RUNNER_WIN32_WINDOW_H_\n\n#include <windows.h>\n\n#include <functional>\n#include <memory>\n#include <string>\n\n// A class abstraction for a high DPI-aware Win32 Window. Intended to be\n// inherited from by classes that wish to specialize with custom\n// rendering and input handling\nclass Win32Window {\n public:\n  struct Point {\n    unsigned int x;\n    unsigned int y;\n    Point(unsigned int x, unsigned int y) : x(x), y(y) {}\n  };\n\n  struct Size {\n    unsigned int width;\n    unsigned int height;\n    Size(unsigned int width, unsigned int height)\n        : width(width), height(height) {}\n  };\n\n  Win32Window();\n  virtual ~Win32Window();\n\n  // Creates a win32 window with |title| that is positioned and sized using\n  // |origin| and |size|. New windows are created on the default monitor. Window\n  // sizes are specified to the OS in physical pixels, hence to ensure a\n  // consistent size this function will scale the inputted width and height as\n  // as appropriate for the default monitor. The window is invisible until\n  // |Show| is called. Returns true if the window was created successfully.\n  bool Create(const std::wstring& title, const Point& origin, const Size& size);\n\n  // Show the current window. Returns true if the window was successfully shown.\n  bool Show();\n\n  // Release OS resources associated with window.\n  void Destroy();\n\n  // Inserts |content| into the window tree.\n  void SetChildContent(HWND content);\n\n  // Returns the backing Window handle to enable clients to set icon and other\n  // window properties. Returns nullptr if the window has been destroyed.\n  HWND GetHandle();\n\n  // If true, closing this window will quit the application.\n  void SetQuitOnClose(bool quit_on_close);\n\n  // Return a RECT representing the bounds of the current client area.\n  RECT GetClientArea();\n\n protected:\n  // Processes and route salient window messages for mouse handling,\n  // size change and DPI. Delegates handling of these to member overloads that\n  // inheriting classes can handle.\n  virtual LRESULT MessageHandler(HWND window,\n                                 UINT const message,\n                                 WPARAM const wparam,\n                                 LPARAM const lparam) noexcept;\n\n  // Called when CreateAndShow is called, allowing subclass window-related\n  // setup. Subclasses should return false if setup fails.\n  virtual bool OnCreate();\n\n  // Called when Destroy is called.\n  virtual void OnDestroy();\n\n private:\n  friend class WindowClassRegistrar;\n\n  // OS callback called by message pump. Handles the WM_NCCREATE message which\n  // is passed when the non-client area is being created and enables automatic\n  // non-client DPI scaling so that the non-client area automatically\n  // responds to changes in DPI. All other messages are handled by\n  // MessageHandler.\n  static LRESULT CALLBACK WndProc(HWND const window,\n                                  UINT const message,\n                                  WPARAM const wparam,\n                                  LPARAM const lparam) noexcept;\n\n  // Retrieves a class instance pointer for |window|\n  static Win32Window* GetThisFromHandle(HWND const window) noexcept;\n\n  // Update the window frame's theme to match the system theme.\n  static void UpdateTheme(HWND const window);\n\n  bool quit_on_close_ = false;\n\n  // window handle for top level window.\n  HWND window_handle_ = nullptr;\n\n  // window handle for hosted content.\n  HWND child_content_ = nullptr;\n};\n\n#endif  // RUNNER_WIN32_WINDOW_H_\n"
  },
  {
    "path": "lib/crop_your_image.dart",
    "content": "import 'package:crop_your_image/src/logic/cropper/image_image_cropper.dart';\nimport 'package:crop_your_image/src/logic/cropper/legacy_image_image_cropper.dart';\nimport 'package:crop_your_image/src/logic/format_detector/default_format_detector.dart';\nimport 'package:crop_your_image/src/logic/parser/image_image_parser.dart';\n\nexport 'src/widget/widget.dart';\nexport 'src/logic/logic.dart';\n\nfinal defaultImageParser = imageImageParser;\nfinal defaultFormatDetector = imageFormatDetector;\nconst defaultImageCropper = ImageImageCropper();\nconst legacyImageCropper = LegacyImageImageCropper();\n"
  },
  {
    "path": "lib/src/logic/cropper/default_rect_validator.dart",
    "content": "import 'dart:ui';\n\nimport 'package:crop_your_image/crop_your_image.dart';\nimport 'package:crop_your_image/src/logic/cropper/errors.dart';\nimport 'package:image/image.dart';\n\n/// default implementation of [RectValidator]\n/// this checks if the rect is inside the image, not negative, and not negative size\nfinal RectValidator<Image> defaultRectValidator =\n    (Image original, Offset topLeft, Offset bottomRight) {\n  if (topLeft.dx.toInt().isNegative ||\n      topLeft.dy.toInt().isNegative ||\n      bottomRight.dx.toInt().isNegative ||\n      bottomRight.dy.toInt().isNegative ||\n      topLeft.dx.toInt() > original.width ||\n      topLeft.dy.toInt() > original.height ||\n      bottomRight.dx.toInt() > original.width ||\n      bottomRight.dy.toInt() > original.height) {\n    return InvalidRectException(topLeft: topLeft, bottomRight: bottomRight);\n  }\n  if (topLeft.dx > bottomRight.dx || topLeft.dy > bottomRight.dy) {\n    return NegativeSizeException(topLeft: topLeft, bottomRight: bottomRight);\n  }\n  return null;\n};\n"
  },
  {
    "path": "lib/src/logic/cropper/errors.dart",
    "content": "import 'dart:ui';\n\nclass NegativeSizeException implements Exception {\n  final Offset topLeft;\n  final Offset bottomRight;\n\n  NegativeSizeException({\n    required this.topLeft,\n    required this.bottomRight,\n  });\n}\n\nclass InvalidRectException implements Exception {\n  final Offset topLeft;\n  final Offset bottomRight;\n\n  InvalidRectException({\n    required this.topLeft,\n    required this.bottomRight,\n  });\n}\n"
  },
  {
    "path": "lib/src/logic/cropper/image_cropper.dart",
    "content": "import 'dart:async';\nimport 'dart:math';\nimport 'dart:typed_data';\nimport 'dart:ui';\n\nimport 'package:crop_your_image/src/logic/format_detector/format.dart';\nimport 'package:crop_your_image/src/logic/shape.dart';\n\n/// Interface for cropping logic\nabstract class ImageCropper<T> {\n  const ImageCropper();\n\n  FutureOr<Uint8List> call({\n    required T original,\n    required Offset topLeft,\n    required Offset bottomRight,\n    ImageFormat? outputFormat,\n    ImageShape shape = ImageShape.rectangle,\n  }) async {\n    final error = rectValidator(original, topLeft, bottomRight);\n    if (error != null) {\n      throw error;\n    }\n\n    final size = Size(\n      bottomRight.dx - topLeft.dx,\n      bottomRight.dy - topLeft.dy,\n    );\n\n    return switch (shape) {\n      ImageShape.rectangle => rectCropper(\n          original,\n          topLeft: topLeft,\n          size: size,\n          outputFormat: outputFormat,\n        ),\n      ImageShape.circle => circleCropper(\n          original,\n          center: Offset(\n            topLeft.dx + size.width / 2,\n            topLeft.dy + size.height / 2,\n          ),\n          radius: min(size.width, size.height) / 2,\n          outputFormat: outputFormat,\n        ),\n    };\n  }\n\n  RectValidator<T> get rectValidator;\n  RectCropper<T> get rectCropper;\n  CircleCropper<T> get circleCropper;\n}\n\ntypedef RectValidator<T> = Exception? Function(\n    T original, Offset topLeft, Offset bottomRight);\ntypedef RectCropper<T> = Uint8List Function(\n  T original, {\n  required Offset topLeft,\n  required Size size,\n  required ImageFormat? outputFormat,\n});\n\ntypedef CircleCropper<T> = Uint8List Function(\n  T original, {\n  required Offset center,\n  required double radius,\n  required ImageFormat? outputFormat,\n});\n"
  },
  {
    "path": "lib/src/logic/cropper/image_image_cropper.dart",
    "content": "import 'dart:typed_data';\nimport 'dart:ui';\n\nimport 'package:crop_your_image/crop_your_image.dart';\n\nimport 'package:image/image.dart' hide ImageFormat;\n\n/// an implementation of [ImageCropper] using image package\nclass ImageImageCropper extends ImageCropper<Image> {\n  const ImageImageCropper();\n\n  @override\n  RectCropper<Image> get rectCropper => defaultRectCropper;\n\n  @override\n  CircleCropper<Image> get circleCropper => defaultCircleCropper;\n\n  @override\n  RectValidator<Image> get rectValidator => defaultRectValidator;\n}\n\n/// process cropping image.\n/// this method is supposed to be called only via compute()\nfinal RectCropper<Image> defaultRectCropper = (\n  Image original, {\n  required Offset topLeft,\n  required Size size,\n  required ImageFormat? outputFormat,\n}) {\n  return _findEncodeFunc(outputFormat)(\n    copyCrop(\n      original,\n      x: topLeft.dx.toInt(),\n      y: topLeft.dy.toInt(),\n      width: size.width.toInt(),\n      height: size.height.toInt(),\n    ),\n  );\n};\n\n/// process cropping image with circle shape.\n/// this method is supposed to be called only via compute()\nfinal CircleCropper<Image> defaultCircleCropper = (\n  Image original, {\n  required Offset center,\n  required double radius,\n  required ImageFormat? outputFormat,\n}) {\n  // convert to rgba if necessary\n  final target =\n      original.numChannels == 4 ? original : original.convert(numChannels: 4);\n\n  return _findCircleEncodeFunc(outputFormat)(\n    copyCropCircle(\n      target,\n      centerX: center.dx.toInt(),\n      centerY: center.dy.toInt(),\n      radius: radius.toInt(),\n    ),\n  );\n};\n\nUint8List Function(Image) _findEncodeFunc(ImageFormat? outputFormat) {\n  return switch (outputFormat) {\n    ImageFormat.bmp => encodeBmp,\n    ImageFormat.ico => encodeIco,\n    ImageFormat.jpeg => encodeJpg,\n    ImageFormat.png => encodePng,\n    _ => encodePng,\n  };\n}\n\nUint8List Function(Image) _findCircleEncodeFunc(ImageFormat? outputFormat) {\n  return switch (outputFormat) {\n    ImageFormat.bmp => encodeBmp,\n    ImageFormat.ico => encodeIco,\n    ImageFormat.jpeg => encodePng, // jpeg does not support circle crop\n    ImageFormat.png => encodePng,\n    _ => encodePng,\n  };\n}\n"
  },
  {
    "path": "lib/src/logic/cropper/legacy_image_image_cropper.dart",
    "content": "import 'dart:ui';\n\nimport 'package:crop_your_image/crop_your_image.dart';\n\nimport 'package:image/image.dart' hide ImageFormat;\n\n/// an implementation of [ImageCropper] using image package\n/// this implementation is legacy that behaves the same as the version 1.1.0 or earlier\n/// meaning that it doesn't respect the outputFormat and always encode result as png\nclass LegacyImageImageCropper extends ImageCropper<Image> {\n  const LegacyImageImageCropper();\n\n  @override\n  RectCropper<Image> get rectCropper => legacyRectCropper;\n\n  @override\n  CircleCropper<Image> get circleCropper => legacyCircleCropper;\n\n  @override\n  RectValidator<Image> get rectValidator => defaultRectValidator;\n}\n\n/// process cropping image.\n/// this method is supposed to be called only via compute()\nfinal RectCropper<Image> legacyRectCropper = (\n  Image original, {\n  required Offset topLeft,\n  required Size size,\n  required ImageFormat? outputFormat,\n}) {\n  return encodePng(\n    copyCrop(\n      original,\n      x: topLeft.dx.toInt(),\n      y: topLeft.dy.toInt(),\n      width: size.width.toInt(),\n      height: size.height.toInt(),\n    ),\n  );\n};\n\n/// process cropping image with circle shape.\n/// this method is supposed to be called only via compute()\nfinal CircleCropper<Image> legacyCircleCropper = (\n  Image original, {\n  required Offset center,\n  required double radius,\n  required ImageFormat? outputFormat,\n}) {\n  // convert to rgba if necessary\n  final target =\n      original.numChannels == 4 ? original : original.convert(numChannels: 4);\n\n  return encodePng(\n    copyCropCircle(\n      target,\n      centerX: center.dx.toInt(),\n      centerY: center.dy.toInt(),\n      radius: radius.toInt(),\n    ),\n  );\n};\n"
  },
  {
    "path": "lib/src/logic/format_detector/default_format_detector.dart",
    "content": "import 'dart:typed_data';\n\nimport 'package:crop_your_image/crop_your_image.dart';\nimport 'package:image/image.dart' as img;\n\nfinal FormatDetector imageFormatDetector = (Uint8List data) {\n  final format = img.findFormatForData(data);\n\n  return switch (format) {\n    img.ImageFormat.png => ImageFormat.png,\n    img.ImageFormat.jpg => ImageFormat.jpeg,\n    img.ImageFormat.webp => ImageFormat.webp,\n    img.ImageFormat.bmp => ImageFormat.bmp,\n    img.ImageFormat.ico => ImageFormat.ico,\n    _ => ImageFormat.png,\n  };\n};\n"
  },
  {
    "path": "lib/src/logic/format_detector/format.dart",
    "content": "/// Enum for the format of an image\nenum ImageFormat {\n  png,\n  jpeg,\n  webp,\n  bmp,\n  ico,\n}\n"
  },
  {
    "path": "lib/src/logic/format_detector/format_detector.dart",
    "content": "import 'dart:typed_data';\n\nimport 'package:crop_your_image/src/logic/format_detector/format.dart';\n\n/// Interface for detecting image format from given [data].\ntypedef FormatDetector = ImageFormat Function(Uint8List data);\n"
  },
  {
    "path": "lib/src/logic/logic.dart",
    "content": "export 'cropper/image_cropper.dart';\nexport 'cropper/default_rect_validator.dart';\nexport 'format_detector/format_detector.dart';\nexport 'format_detector/format.dart';\nexport 'parser/image_parser.dart';\nexport 'parser/image_detail.dart';\n"
  },
  {
    "path": "lib/src/logic/parser/errors.dart",
    "content": "import 'package:crop_your_image/src/logic/format_detector/format.dart';\n\nclass InvalidInputFormatException implements Exception {\n  final ImageFormat? inputFormat;\n\n  InvalidInputFormatException(this.inputFormat);\n}\n"
  },
  {
    "path": "lib/src/logic/parser/image_detail.dart",
    "content": "/// Image with detail information.\nclass ImageDetail<T> {\n  ImageDetail({\n    required this.image,\n    required this.width,\n    required this.height,\n  });\n\n  final T image;\n  final double width;\n  final double height;\n\n  late final bool isLandscape = width >= height;\n  late final bool isPortrait = width < height;\n}\n"
  },
  {
    "path": "lib/src/logic/parser/image_image_parser.dart",
    "content": "import 'dart:typed_data';\n\nimport 'package:crop_your_image/src/logic/format_detector/format.dart';\nimport 'package:crop_your_image/src/logic/parser/errors.dart';\nimport 'package:crop_your_image/src/logic/parser/image_detail.dart';\nimport 'package:image/image.dart' as image;\n\nimport 'image_parser.dart';\n\n/// Implementation of [ImageParser] using image package\n/// Parsed image is represented as [image.Image]\nfinal ImageParser<image.Image> imageImageParser = (data, {inputFormat}) {\n  late final image.Image? tempImage;\n  try {\n    tempImage = _decodeWith(data, format: inputFormat);\n  } on InvalidInputFormatException {\n    rethrow;\n  }\n\n  assert(tempImage != null);\n\n  // check orientation\n  final parsed = switch (tempImage?.exif.exifIfd.orientation ?? -1) {\n    3 => image.copyRotate(tempImage!, angle: 180),\n    6 => image.copyRotate(tempImage!, angle: 90),\n    8 => image.copyRotate(tempImage!, angle: -90),\n    _ => tempImage!,\n  };\n\n  return ImageDetail(\n    image: parsed,\n    width: parsed.width.toDouble(),\n    height: parsed.height.toDouble(),\n  );\n};\n\nimage.Image? _decodeWith(Uint8List data, {ImageFormat? format}) {\n  try {\n    return switch (format) {\n      ImageFormat.jpeg => image.decodeJpg(data),\n      ImageFormat.png => image.decodePng(data),\n      ImageFormat.bmp => image.decodeBmp(data),\n      ImageFormat.ico => image.decodeIco(data),\n      ImageFormat.webp => image.decodeWebP(data),\n      _ => image.decodeImage(data),\n    };\n  } on image.ImageException {\n    throw InvalidInputFormatException(format);\n  }\n}\n"
  },
  {
    "path": "lib/src/logic/parser/image_parser.dart",
    "content": "import 'dart:typed_data';\n\nimport 'package:crop_your_image/src/logic/format_detector/format.dart';\nimport 'package:crop_your_image/src/logic/parser/image_detail.dart';\n\n/// Interface for parsing image and build [ImageDetail] from given [data].\ntypedef ImageParser<T> = ImageDetail<T> Function(\n  Uint8List data, {\n  ImageFormat? inputFormat,\n});\n"
  },
  {
    "path": "lib/src/logic/shape.dart",
    "content": "/// Enum for the shape of a cropped image\nenum ImageShape {\n  rectangle,\n  circle,\n}\n"
  },
  {
    "path": "lib/src/widget/calculator.dart",
    "content": "import 'dart:math';\n\nimport 'package:crop_your_image/crop_your_image.dart';\nimport 'package:flutter/widgets.dart';\n\n/// Calculation logics for various [Rect] data.\nabstract class Calculator {\n  const Calculator();\n\n  /// calculates [ViewportBasedRect] of image to fit the screenSize.\n  ViewportBasedRect imageRect(Size screenSize, double imageAspectRatio);\n\n  /// calculates [ViewportBasedRect] of initial cropping area.\n  ViewportBasedRect initialCropRect(Size screenSize,\n      ViewportBasedRect imageRect, double aspectRatio, double sizeRatio);\n\n  /// calculates initial scale of image to cover _CropEditor\n  double scaleToCover(Size screenSize, ViewportBasedRect imageRect);\n\n  /// calculates ratio of [targetImage] and [screenSize]\n  double screenSizeRatio(Size imageSize, Size screenSize);\n\n  /// calculates [ViewportBasedRect] of the result of user moving the cropping area.\n  ViewportBasedRect moveRect(\n    ViewportBasedRect original,\n    double deltaX,\n    double deltaY,\n    ViewportBasedRect imageRect,\n  ) {\n    if (original.left + deltaX < imageRect.left) {\n      deltaX = (original.left - imageRect.left) * -1;\n    }\n    if (original.right + deltaX > imageRect.right) {\n      deltaX = imageRect.right - original.right;\n    }\n    if (original.top + deltaY < imageRect.top) {\n      deltaY = (original.top - imageRect.top) * -1;\n    }\n    if (original.bottom + deltaY > imageRect.bottom) {\n      deltaY = imageRect.bottom - original.bottom;\n    }\n    return Rect.fromLTWH(\n      original.left + deltaX,\n      original.top + deltaY,\n      original.width,\n      original.height,\n    );\n  }\n\n  /// calculates [ViewportBasedRect] of the result of user moving the top-left dot.\n  ViewportBasedRect moveTopLeft(\n    ViewportBasedRect original,\n    double deltaX,\n    double deltaY,\n    ViewportBasedRect imageRect,\n    double? aspectRatio,\n  ) {\n    final newLeft =\n        max(imageRect.left, min(original.left + deltaX, original.right - 40));\n    final newTop =\n        min(max(original.top + deltaY, imageRect.top), original.bottom - 40);\n    if (aspectRatio == null) {\n      return Rect.fromLTRB(\n        newLeft,\n        newTop,\n        original.right,\n        original.bottom,\n      );\n    } else {\n      if (deltaX.abs() > deltaY.abs()) {\n        var newWidth = original.right - newLeft;\n        var newHeight = newWidth / aspectRatio;\n        if (original.bottom - newHeight < imageRect.top) {\n          newHeight = original.bottom - imageRect.top;\n          newWidth = newHeight * aspectRatio;\n        }\n\n        return Rect.fromLTRB(\n          original.right - newWidth,\n          original.bottom - newHeight,\n          original.right,\n          original.bottom,\n        );\n      } else {\n        var newHeight = original.bottom - newTop;\n        var newWidth = newHeight * aspectRatio;\n        if (original.right - newWidth < imageRect.left) {\n          newWidth = original.right - imageRect.left;\n          newHeight = newWidth / aspectRatio;\n        }\n        return Rect.fromLTRB(\n          original.right - newWidth,\n          original.bottom - newHeight,\n          original.right,\n          original.bottom,\n        );\n      }\n    }\n  }\n\n  /// calculates [ViewportBasedRect] of the result of user moving the top-right dot.\n  ViewportBasedRect moveTopRight(\n    ViewportBasedRect original,\n    double deltaX,\n    double deltaY,\n    ViewportBasedRect imageRect,\n    double? aspectRatio,\n  ) {\n    final newTop =\n        min(max(original.top + deltaY, imageRect.top), original.bottom - 40);\n    final newRight =\n        max(min(original.right + deltaX, imageRect.right), original.left + 40);\n    if (aspectRatio == null) {\n      return Rect.fromLTRB(\n        original.left,\n        newTop,\n        newRight,\n        original.bottom,\n      );\n    } else {\n      if (deltaX.abs() > deltaY.abs()) {\n        var newWidth = newRight - original.left;\n        var newHeight = newWidth / aspectRatio;\n        if (original.bottom - newHeight < imageRect.top) {\n          newHeight = original.bottom - imageRect.top;\n          newWidth = newHeight * aspectRatio;\n        }\n\n        return Rect.fromLTWH(\n          original.left,\n          original.bottom - newHeight,\n          newWidth,\n          newHeight,\n        );\n      } else {\n        var newHeight = original.bottom - newTop;\n        var newWidth = newHeight * aspectRatio;\n        if (original.left + newWidth > imageRect.right) {\n          newWidth = imageRect.right - original.left;\n          newHeight = newWidth / aspectRatio;\n        }\n        return Rect.fromLTRB(\n          original.left,\n          original.bottom - newHeight,\n          original.left + newWidth,\n          original.bottom,\n        );\n      }\n    }\n  }\n\n  /// calculates [ViewportBasedRect] of the result of user moving the bottom-left dot.\n  ViewportBasedRect moveBottomLeft(\n    ViewportBasedRect original,\n    double deltaX,\n    double deltaY,\n    ViewportBasedRect imageRect,\n    double? aspectRatio,\n  ) {\n    final newLeft =\n        max(imageRect.left, min(original.left + deltaX, original.right - 40));\n    final newBottom =\n        max(min(original.bottom + deltaY, imageRect.bottom), original.top + 40);\n\n    if (aspectRatio == null) {\n      return Rect.fromLTRB(\n        newLeft,\n        original.top,\n        original.right,\n        newBottom,\n      );\n    } else {\n      if (deltaX.abs() > deltaY.abs()) {\n        var newWidth = original.right - newLeft;\n        var newHeight = newWidth / aspectRatio;\n        if (original.top + newHeight > imageRect.bottom) {\n          newHeight = imageRect.bottom - original.top;\n          newWidth = newHeight * aspectRatio;\n        }\n\n        return Rect.fromLTRB(\n          original.right - newWidth,\n          original.top,\n          original.right,\n          original.top + newHeight,\n        );\n      } else {\n        var newHeight = newBottom - original.top;\n        var newWidth = newHeight * aspectRatio;\n        if (original.right - newWidth < imageRect.left) {\n          newWidth = original.right - imageRect.left;\n          newHeight = newWidth / aspectRatio;\n        }\n        return Rect.fromLTRB(\n          original.right - newWidth,\n          original.top,\n          original.right,\n          original.top + newHeight,\n        );\n      }\n    }\n  }\n\n  /// calculates [ViewportBasedRect] of the result of user moving the bottom-right dot.\n  ViewportBasedRect moveBottomRight(\n    ViewportBasedRect original,\n    double deltaX,\n    double deltaY,\n    ViewportBasedRect imageRect,\n    double? aspectRatio,\n  ) {\n    final newRight =\n        min(imageRect.right, max(original.right + deltaX, original.left + 40));\n    final newBottom =\n        max(min(original.bottom + deltaY, imageRect.bottom), original.top + 40);\n    if (aspectRatio == null) {\n      return Rect.fromLTRB(\n        original.left,\n        original.top,\n        newRight,\n        newBottom,\n      );\n    } else {\n      if (deltaX.abs() > deltaY.abs()) {\n        var newWidth = newRight - original.left;\n        var newHeight = newWidth / aspectRatio;\n        if (original.top + newHeight > imageRect.bottom) {\n          newHeight = imageRect.bottom - original.top;\n          newWidth = newHeight * aspectRatio;\n        }\n\n        return Rect.fromLTWH(\n          original.left,\n          original.top,\n          newWidth,\n          newHeight,\n        );\n      } else {\n        var newHeight = newBottom - original.top;\n        var newWidth = newHeight * aspectRatio;\n        if (original.left + newWidth > imageRect.right) {\n          newWidth = imageRect.right - original.left;\n          newHeight = newWidth / aspectRatio;\n        }\n        return Rect.fromLTWH(\n          original.left,\n          original.top,\n          newWidth,\n          newHeight,\n        );\n      }\n    }\n  }\n\n  /// correct [ViewportBasedRect] not to exceed [ViewportBasedRect] of image.\n  ViewportBasedRect correct(\n    ViewportBasedRect rect,\n    ViewportBasedRect imageRect,\n  ) {\n    return Rect.fromLTRB(\n      max(rect.left, imageRect.left),\n      max(rect.top, imageRect.top),\n      min(rect.right, imageRect.right),\n      min(rect.bottom, imageRect.bottom),\n    );\n  }\n}\n\nclass HorizontalCalculator extends Calculator {\n  const HorizontalCalculator();\n\n  @override\n  ViewportBasedRect imageRect(Size screenSize, double imageRatio) {\n    final imageScreenHeight = screenSize.width / imageRatio;\n    final top = (screenSize.height - imageScreenHeight) / 2;\n    final bottom = top + imageScreenHeight;\n    return Rect.fromLTWH(0, top, screenSize.width, bottom - top);\n  }\n\n  @override\n  ViewportBasedRect initialCropRect(\n    Size screenSize,\n    ViewportBasedRect imageRect,\n    double aspectRatio,\n    double sizeRatio,\n  ) {\n    final imageRatio = imageRect.width / imageRect.height;\n\n    // consider crop area will fit vertically or horizontally to image\n    final initialSize = imageRatio > aspectRatio\n        ? Size((imageRect.height * aspectRatio) * sizeRatio,\n            imageRect.height * sizeRatio)\n        : Size(screenSize.width * sizeRatio,\n            (screenSize.width / aspectRatio) * sizeRatio);\n\n    return Rect.fromLTWH(\n      (screenSize.width - initialSize.width) / 2,\n      (screenSize.height - initialSize.height) / 2,\n      initialSize.width,\n      initialSize.height,\n    );\n  }\n\n  @override\n  double scaleToCover(Size screenSize, ViewportBasedRect imageRect) {\n    return screenSize.height / imageRect.height;\n  }\n\n  @override\n  double screenSizeRatio(Size imageSize, Size screenSize) {\n    return imageSize.width / screenSize.width;\n  }\n}\n\nclass VerticalCalculator extends Calculator {\n  const VerticalCalculator();\n\n  @override\n  ViewportBasedRect imageRect(Size screenSize, double imageRatio) {\n    final imageScreenWidth = screenSize.height * imageRatio;\n    final left = (screenSize.width - imageScreenWidth) / 2;\n    final right = left + imageScreenWidth;\n    return Rect.fromLTWH(left, 0, right - left, screenSize.height);\n  }\n\n  @override\n  ViewportBasedRect initialCropRect(\n    Size screenSize,\n    ViewportBasedRect imageRect,\n    double aspectRatio,\n    double sizeRatio,\n  ) {\n    final imageRatio = imageRect.width / imageRect.height;\n\n    final initialSize = imageRatio < aspectRatio\n        ? Size(imageRect.width * sizeRatio,\n            imageRect.width / aspectRatio * sizeRatio)\n        : Size((screenSize.height * aspectRatio) * sizeRatio,\n            screenSize.height * sizeRatio);\n\n    return Rect.fromLTWH(\n      (screenSize.width - initialSize.width) / 2,\n      (screenSize.height - initialSize.height) / 2,\n      initialSize.width,\n      initialSize.height,\n    );\n  }\n\n  @override\n  double scaleToCover(Size screenSize, ViewportBasedRect imageRect) {\n    return screenSize.width / imageRect.width;\n  }\n\n  @override\n  double screenSizeRatio(Size imageSize, Size screenSize) {\n    return imageSize.height / screenSize.height;\n  }\n}\n"
  },
  {
    "path": "lib/src/widget/circle_crop_area_clipper.dart",
    "content": "import 'package:flutter/material.dart';\n\nclass CircleCropAreaClipper extends CustomClipper<Path> {\n  final Rect rect;\n\n  CircleCropAreaClipper(this.rect);\n\n  @override\n  Path getClip(Size size) {\n    return Path()\n      ..addOval(Rect.fromCircle(center: rect.center, radius: rect.width / 2))\n      ..addRect(Rect.fromLTWH(0.0, 0.0, size.width, size.height))\n      ..fillType = PathFillType.evenOdd;\n  }\n\n  @override\n  bool shouldReclip(CustomClipper<Path> oldClipper) => true;\n}\n"
  },
  {
    "path": "lib/src/widget/constants.dart",
    "content": "const dotTotalSize = 32.0; // fixed corner dot size.\n"
  },
  {
    "path": "lib/src/widget/controller.dart",
    "content": "import 'dart:typed_data';\n\nimport 'package:crop_your_image/src/widget/crop.dart';\nimport 'package:flutter/widgets.dart';\n\n/// Controller to control crop actions.\nclass CropController {\n  late CropControllerDelegate _delegate;\n\n  /// setter for [CropControllerDelegate]\n  set delegate(CropControllerDelegate value) => _delegate = value;\n\n  /// crop given image with current configuration\n  void crop() => _delegate.onCrop(false);\n\n  /// crop given image with current configuration and circle shape.\n  void cropCircle() => _delegate.onCrop(true);\n\n  /// Change image to be cropped.\n  /// When image is changed, [Rect] of cropping area will be reset.\n  set image(Uint8List value) => _delegate.onImageChanged(value);\n\n  /// change fixed aspect ratio\n  /// if [value] is null, cropping area can be moved without fixed aspect ratio.\n  set aspectRatio(double? value) => _delegate.onChangeAspectRatio(value);\n\n  /// change if cropping with circle shaped UI.\n  /// if [value] is true, [aspectRatio] automatically fixed with 1\n  set withCircleUi(bool value) => _delegate.onChangeWithCircleUi(value);\n\n  /// change [ViewportBasedRect] of crop rect.\n  /// the value is corrected if it indicates outside of the image.\n  set cropRect(ViewportBasedRect value) => _delegate.onChangeCropRect(value);\n\n  /// change [ViewportBasedRect] of crop rect\n  /// based on [ImageBasedRect] of original image.\n  set area(ImageBasedRect value) => _delegate.onChangeArea(value);\n\n  /// request undo\n  void undo() => _delegate.onUndo();\n\n  /// request redo\n  void redo() => _delegate.onRedo();\n}\n\n/// Delegate of actions from [CropController]\nclass CropControllerDelegate {\n  /// callback that [CropController.crop] is called.\n  /// the meaning of the value is if cropping a image with circle shape.\n  late ValueChanged<bool> onCrop;\n\n  /// callback that [CropController.image] is set.\n  late ValueChanged<Uint8List> onImageChanged;\n\n  /// callback that [CropController.aspectRatio] is set.\n  late ValueChanged<double?> onChangeAspectRatio;\n\n  /// callback that [CropController.withCircleUi] is changed.\n  late ValueChanged<bool> onChangeWithCircleUi;\n\n  /// callback that [CropController.cropRect] is changed.\n  late ValueChanged<ViewportBasedRect> onChangeCropRect;\n\n  /// callback that [CropController.area] is changed.\n  late ValueChanged<ImageBasedRect> onChangeArea;\n\n  /// callback that [CropController.undo] is called.\n  late VoidCallback onUndo;\n\n  /// callback that [CropController.redo] is called.\n  late VoidCallback onRedo;\n}\n"
  },
  {
    "path": "lib/src/widget/crop.dart",
    "content": "import 'dart:async';\n\nimport 'package:crop_your_image/crop_your_image.dart';\nimport 'package:crop_your_image/src/logic/shape.dart';\nimport 'package:crop_your_image/src/widget/circle_crop_area_clipper.dart';\nimport 'package:crop_your_image/src/widget/constants.dart';\nimport 'package:crop_your_image/src/widget/crop_editor_view_state.dart';\nimport 'package:crop_your_image/src/widget/history_state.dart';\nimport 'package:crop_your_image/src/widget/rect_crop_area_clipper.dart';\nimport 'package:flutter/foundation.dart';\nimport 'package:flutter/gestures.dart';\nimport 'package:flutter/material.dart';\n\ntypedef ViewportBasedRect = Rect;\ntypedef ImageBasedRect = Rect;\n\ntypedef History = ({int undoCount, int redoCount});\ntypedef HistoryChangedCallback = void Function(History history);\n\ntypedef WillUpdateScale = bool Function(double newScale);\ntypedef CornerDotBuilder = Widget Function(\n    double size, EdgeAlignment edgeAlignment);\n\ntypedef CroppingRectBuilder = ViewportBasedRect Function(\n  ViewportBasedRect viewportRect,\n  ImageBasedRect imageRect,\n);\n\ntypedef OnMovedCallback = void Function(\n  ViewportBasedRect viewportRect,\n  ImageBasedRect imageRect,\n);\n\ntypedef OverlayBuilder = Widget Function(BuildContext context, Rect rect);\n\nenum CropStatus { nothing, loading, ready, cropping }\n\n/// Widget for the entry point of crop_your_image.\nclass Crop extends StatelessWidget {\n  /// original image data\n  final Uint8List image;\n\n  /// callback when cropping completed\n  final ValueChanged<CropResult> onCropped;\n\n  /// fixed aspect ratio of cropping rect.\n  /// null, by default, means no fixed aspect ratio.\n  final double? aspectRatio;\n\n  /// builder object for initial cropping rect.\n  /// the legacy arguments of [initialSize], [initialArea], and [initialRectBuilder] are removed.\n  /// you can migrate to those arguments by passing [InitialRectBuilder.withSizeAndRatio], [InitialRectBuilder.withBuilder],\n  /// or [InitialRectBuilder.withArea].\n  ///\n  /// [InitialRectBuilder.withSizeAndRatio] enables you to set initial size and aspect ratio of cropping rect.\n  /// [size] need to be between 0.0 and 1.0, or null.\n  /// [aspectRatio] is an initial aspect ratio of cropping rect, which means user's interaction\n  /// will change this ratio.\n  ///\n  /// [InitialRectBuilder.withBuilder] enables you to build an initial [ViewportBasedRect] of cropping rect\n  /// with passed [ViewportBasedRect] of [viewportRect] and [imageRect].\n  ///\n  /// [InitialRectBuilder.withArea] enables you to set an initial [ViewportBasedRect] of cropping rect.\n  /// you can configure the rect based on [ImageBasedRect] and [Crop] will convert it to [ViewportBasedRect].\n  ///\n  /// Note that [ImageBasedRect] is [Rect] based on original [image] data, not screen.\n  ///\n  /// e.g. If the original image size is 1280x1024,\n  /// giving [Rect.fromLTWH(240, 212, 800, 600)] as [area] would\n  /// result in covering exact center of the image with 800x600 image size\n  /// regardless of the size of viewport.\n  ///\n  /// If [aspectRatio] is given at the same time, [Crop] will NOT cause error.\n  /// In that case, once user moves cropping rect with their hand,\n  /// the shape of cropping area is soon re-calculated depending on [aspectRatio].\n  final InitialRectBuilder? initialRectBuilder;\n\n  /// flag if cropping image with circle shape.\n  /// As oval shape is not supported, [aspectRatio] is fixed to 1 if [withCircleUi] is true.\n  final bool withCircleUi;\n\n  /// controller for control crop actions\n  final CropController? controller;\n\n  /// Callback called when cropping rect changes for any reasons.\n  final OnMovedCallback? onMoved;\n\n  final void Function(Rect imageRect)? onImageMoved;\n\n  /// Callback called when status of Crop widget is changed.\n  ///\n  /// note: Currently, the very first callback is [CropStatus.ready]\n  /// which is called after loading [image] data for the first time.\n  final ValueChanged<CropStatus>? onStatusChanged;\n\n  /// [Color] of the mask widget which is placed over the cropping editor.\n  final Color? maskColor;\n\n  /// [Color] of the base color of the cropping editor.\n  final Color baseColor;\n\n  /// Corner radius of cropping rect\n  final double radius;\n\n  /// Builder function for corner dot widgets.\n  /// [CornerDotBuilder] passes [size] which indicates a desired size of each dots\n  /// and [EdgeAlignment] which indicates the position of each dot.\n  /// If you want default dot widget with different color, [DotControl] is available.\n  final CornerDotBuilder? cornerDotBuilder;\n\n  /// [Clip] configuration for crop editor, especially corner dots.\n  /// [Clip.hardEdge] by default.\n  final Clip clipBehavior;\n\n  /// [Widget] for showing preparing for image is in progress.\n  /// [SizedBox.shrink()] is used by default.\n  final Widget progressIndicator;\n\n  /// If [true], the cropping editor is changed to _interactive_ mode\n  /// and users can zoom and pan the image.\n  /// [false] by default.\n  final bool interactive;\n\n  /// If [fixCropRect] and [interactive] are both [true], cropping rect is fixed and can't be moved.\n  /// [false] by default.\n  final bool fixCropRect;\n\n  /// Function called before scaling image.\n  /// Note that this function is called multiple times during user tries to scale image.\n  /// If this function returns [false], scaling is canceled.\n  final WillUpdateScale? willUpdateScale;\n\n  /// Callback called when history of crop editor operation is changed.\n  final HistoryChangedCallback? onHistoryChanged;\n\n  /// (for Web) Sets the mouse-wheel zoom sensitivity for web applications.\n  final double scrollZoomSensitivity;\n\n  /// (Advanced) Injected logic for cropping image.\n  final ImageCropper imageCropper;\n\n  /// (Advanced) Injected logic for detecting image format.\n  final FormatDetector? formatDetector;\n\n  /// (Advanced) Injected logic for parsing image detail.\n  final ImageParser imageParser;\n\n  /// builder to place a widget inside the cropping area\n  final OverlayBuilder? overlayBuilder;\n\n  /// The rendering quality of the image\n  final FilterQuality filterQuality;\n\n  Crop({\n    super.key,\n    required this.image,\n    required this.onCropped,\n    this.aspectRatio,\n    this.initialRectBuilder,\n    this.withCircleUi = false,\n    this.controller,\n    this.onMoved,\n    this.onImageMoved,\n    this.onStatusChanged,\n    this.maskColor,\n    this.baseColor = Colors.white,\n    this.radius = 0,\n    this.cornerDotBuilder,\n    this.clipBehavior = Clip.hardEdge,\n    this.fixCropRect = false,\n    this.progressIndicator = const SizedBox.shrink(),\n    this.interactive = false,\n    this.willUpdateScale,\n    this.onHistoryChanged,\n    FormatDetector? formatDetector,\n    this.imageCropper = defaultImageCropper,\n    ImageParser? imageParser,\n    this.scrollZoomSensitivity = 0.05,\n    this.overlayBuilder,\n    this.filterQuality = FilterQuality.medium,\n  })  : this.imageParser = imageParser ?? defaultImageParser,\n        this.formatDetector = formatDetector ?? defaultFormatDetector;\n\n  @override\n  Widget build(BuildContext context) {\n    return LayoutBuilder(\n      builder: (c, constraints) {\n        final newData = MediaQuery.of(c).copyWith(\n          size: constraints.biggest,\n        );\n        return MediaQuery(\n          data: newData,\n          child: _CropEditor(\n            key: key,\n            image: image,\n            onCropped: onCropped,\n            aspectRatio: aspectRatio,\n            initialRectBuilder: initialRectBuilder,\n            withCircleUi: withCircleUi,\n            controller: controller,\n            onMoved: onMoved,\n            onImageMoved: onImageMoved,\n            onStatusChanged: onStatusChanged,\n            maskColor: maskColor,\n            baseColor: baseColor,\n            radius: radius,\n            cornerDotBuilder: cornerDotBuilder,\n            clipBehavior: clipBehavior,\n            fixCropRect: fixCropRect,\n            progressIndicator: progressIndicator,\n            interactive: interactive,\n            willUpdateScale: willUpdateScale,\n            onHistoryChanged: onHistoryChanged,\n            scrollZoomSensitivity: scrollZoomSensitivity,\n            imageCropper: imageCropper,\n            formatDetector: formatDetector,\n            imageParser: imageParser,\n            overlayBuilder: overlayBuilder,\n            filterQuality: filterQuality,\n          ),\n        );\n      },\n    );\n  }\n}\n\nclass _CropEditor extends StatefulWidget {\n  final Uint8List image;\n  final ValueChanged<CropResult> onCropped;\n  final double? aspectRatio;\n  final InitialRectBuilder? initialRectBuilder;\n  final bool withCircleUi;\n  final CropController? controller;\n  final OnMovedCallback? onMoved;\n  final void Function(Rect imageRect)? onImageMoved;\n  final ValueChanged<CropStatus>? onStatusChanged;\n  final Color? maskColor;\n  final Color baseColor;\n  final double radius;\n  final CornerDotBuilder? cornerDotBuilder;\n  final Clip clipBehavior;\n  final bool fixCropRect;\n  final Widget progressIndicator;\n  final bool interactive;\n  final WillUpdateScale? willUpdateScale;\n  final HistoryChangedCallback? onHistoryChanged;\n  final ImageCropper imageCropper;\n  final FormatDetector? formatDetector;\n  final ImageParser imageParser;\n  final double scrollZoomSensitivity;\n  final OverlayBuilder? overlayBuilder;\n  final FilterQuality filterQuality;\n\n  const _CropEditor({\n    super.key,\n    required this.image,\n    required this.onCropped,\n    required this.aspectRatio,\n    required this.initialRectBuilder,\n    this.withCircleUi = false,\n    required this.controller,\n    required this.onMoved,\n    required this.onImageMoved,\n    required this.onStatusChanged,\n    required this.maskColor,\n    required this.baseColor,\n    required this.radius,\n    required this.cornerDotBuilder,\n    required this.clipBehavior,\n    required this.fixCropRect,\n    required this.progressIndicator,\n    required this.interactive,\n    required this.willUpdateScale,\n    required this.onHistoryChanged,\n    required this.imageCropper,\n    required this.formatDetector,\n    required this.imageParser,\n    required this.scrollZoomSensitivity,\n    this.overlayBuilder,\n    required this.filterQuality,\n  });\n\n  @override\n  _CropEditorState createState() => _CropEditorState();\n}\n\nclass _CropEditorState extends State<_CropEditor> {\n  /// controller for crop actions\n  late CropController _cropController;\n\n  /// an object that preserve and expose all the state for _CropEditor\n  late CropEditorViewState _viewState;\n\n  /// history state of crop editor operation for undo / redo\n  /// history is stored when zoom / pan is changed, as well as crop rect moved.\n  late final HistoryState _historyState;\n\n  ReadyCropEditorViewState get _readyState =>\n      _viewState as ReadyCropEditorViewState;\n\n  /// image with detail info parsed with [widget.imageParser]\n  ImageDetail? _parsedImageDetail;\n\n  /// detected image format with [widget.formatDetector]\n  ImageFormat? _detectedFormat;\n\n  double? _sizeCache;\n\n  @override\n  void initState() {\n    super.initState();\n\n    // prepare for controller\n    _cropController = widget.controller ?? CropController();\n    _cropController.delegate = CropControllerDelegate()\n      ..onCrop = _crop\n      ..onChangeAspectRatio = (aspectRatio) {\n        _resizeWithSizeAndRatio(_sizeCache, aspectRatio);\n      }\n      ..onChangeWithCircleUi = (withCircleUi) {\n        _viewState = _readyState.copyWith(withCircleUi: withCircleUi);\n        _resizeWithSizeAndRatio(_sizeCache, null);\n      }\n      ..onImageChanged = _resetImage\n      ..onChangeCropRect = (newCropRect) {\n        _updateCropRect(_readyState.correct(newCropRect));\n      }\n      ..onChangeArea = (newArea) {\n        _resizeWithArea(newArea);\n      }\n      ..onUndo = _undo\n      ..onRedo = _redo;\n\n    // prepare for history state\n    _historyState = HistoryState(onHistoryChanged: widget.onHistoryChanged);\n  }\n\n  @override\n  void didChangeDependencies() {\n    /// parse image with given parser and format detector\n    _parseImageWith(\n      parser: widget.imageParser,\n      formatDetector: widget.formatDetector,\n      image: widget.image,\n    ).then((parsed) {\n      if (!mounted) {\n        return;\n      }\n      if (parsed != null) {\n        if (_viewState is PreparingCropEditorViewState) {\n          setState(() {\n            _viewState = (_viewState as PreparingCropEditorViewState).prepared(\n              Size(parsed.width, parsed.height),\n            );\n          });\n        }\n        _resetCropRect();\n        widget.onStatusChanged?.call(CropStatus.ready);\n      }\n    });\n\n    super.didChangeDependencies();\n  }\n\n  /// apply crop rect changed to view state\n  void _updateCropRect(CropEditorViewState newState) {\n    setState(() => _viewState = newState);\n    widget.onMoved?.call(_readyState.cropRect, _readyState.rectToCrop);\n  }\n\n  /// reset image to be cropped\n  void _resetImage(Uint8List targetImage) {\n    if (!mounted) {\n      return;\n    }\n\n    widget.onStatusChanged?.call(CropStatus.loading);\n\n    _parseImageWith(\n      parser: widget.imageParser,\n      formatDetector: widget.formatDetector,\n      image: targetImage,\n    ).then((parsed) {\n      if (!mounted) {\n        return;\n      }\n      if (parsed != null) {\n        if (_viewState is PreparingCropEditorViewState) {\n          setState(() {\n            _viewState = (_viewState as PreparingCropEditorViewState).prepared(\n              Size(parsed.width, parsed.height),\n            );\n          });\n        }\n        _resetCropRect();\n        widget.onStatusChanged?.call(CropStatus.ready);\n      }\n    });\n  }\n\n  /// temporary field to detect last computed.\n  ImageParser? _lastParser;\n  FormatDetector? _lastFormatDetector;\n  Uint8List? _lastImage;\n  Future<ImageDetail?>? _lastComputed;\n\n  Future<ImageDetail?> _parseImageWith({\n    required ImageParser parser,\n    required FormatDetector? formatDetector,\n    required Uint8List image,\n  }) async {\n    if (_lastParser == parser &&\n        _lastImage == image &&\n        _lastFormatDetector == formatDetector) {\n      // no change\n      return _parsedImageDetail;\n    }\n\n    _lastParser = parser;\n    _lastFormatDetector = formatDetector;\n    _lastImage = image;\n\n    _viewState = PreparingCropEditorViewState(\n      viewportSize: MediaQuery.of(context).size,\n      withCircleUi: widget.withCircleUi,\n      aspectRatio: widget.aspectRatio,\n    );\n\n    final format = formatDetector?.call(image);\n    final future = compute(\n      _parseFunc,\n      [widget.imageParser, format, image],\n    );\n    _lastComputed = future;\n    final parsed = await future;\n    // check if Crop is still alive\n    if (!mounted) {\n      return null;\n    }\n\n    // if _parseImageWith() is called again before future completed,\n    // just skip and the last future is used.\n    if (_lastComputed == future) {\n      // cache parsed image for future use of _crop()\n      _parsedImageDetail = parsed;\n      _lastComputed = null;\n      _detectedFormat = format;\n      return parsed;\n    }\n    return null;\n  }\n\n  /// reset [ViewportBasedRect] of crop rect with current state\n  void _resetCropRect() {\n    setState(() {\n      _viewState = _readyState.resetCropRect();\n      widget.onImageMoved?.call(_readyState.imageRect);\n    });\n\n    final builder = widget.initialRectBuilder;\n    switch (builder) {\n      case (WithBuilderInitialRectBuilder()):\n        _updateCropRect(\n          _readyState.copyWith(\n            cropRect: builder.build(\n              Rect.fromLTWH(\n                0,\n                0,\n                _readyState.viewportSize.width,\n                _readyState.viewportSize.height,\n              ),\n              _readyState.imageRect,\n            ),\n          ),\n        );\n      case (WithAreaInitialRectBuilder()):\n        _resizeWithArea(builder.area);\n      case (WithSizeAndRatioInitialRectBuilder()):\n        _resizeWithSizeAndRatio(builder.size, builder.aspectRatio);\n        _sizeCache = builder.size;\n      default:\n        _resizeWithSizeAndRatio(null, widget.aspectRatio);\n    }\n\n    if (widget.interactive) {\n      _applyScale(_readyState.scaleToCover);\n    }\n  }\n\n  void _resizeWithArea(ImageBasedRect area) {\n    // calculate how smaller the viewport is than the image\n    _updateCropRect(_readyState.cropRectWith(area));\n  }\n\n  /// resize crop rect with given aspect ratio and area.\n  void _resizeWithSizeAndRatio(double? size, double? aspectRatio) {\n    _updateCropRect(\n      _readyState.cropRectInitialized(\n        initialSize: size,\n        aspectRatio: aspectRatio,\n      ),\n    );\n  }\n\n  void _undo() {\n    final last = _historyState.requestUndo(_readyState);\n    if (last != null) {\n      _updateCropRect(last);\n    }\n  }\n\n  void _redo() {\n    final last = _historyState.requestRedo(_readyState);\n    if (last != null) {\n      _updateCropRect(last);\n    }\n  }\n\n  /// crop given image with given area.\n  Future<void> _crop(bool withCircleShape) async {\n    assert(_parsedImageDetail != null);\n\n    widget.onStatusChanged?.call(CropStatus.cropping);\n\n    // use compute() not to block UI update\n    late CropResult cropResult;\n    try {\n      final image = await compute(\n        _cropFunc,\n        [\n          widget.imageCropper,\n          _parsedImageDetail!.image,\n          _readyState.rectToCrop,\n          withCircleShape,\n          _detectedFormat,\n        ],\n      );\n      cropResult = CropSuccess(image);\n    } catch (e, trace) {\n      cropResult = CropFailure(e, trace);\n    }\n\n    widget.onCropped(cropResult);\n    widget.onStatusChanged?.call(CropStatus.ready);\n  }\n\n  // for zooming\n  double _baseScale = 1.0;\n\n  /// handle scale events with pinching\n  void _handleScaleStart(ScaleStartDetails detail) {\n    _historyState.pushHistory(_readyState);\n    _baseScale = _readyState.scale;\n  }\n\n  void _handleScaleUpdate(ScaleUpdateDetails detail) {\n    setState(() {\n      _viewState = _readyState.offsetUpdated(detail.focalPointDelta);\n      widget.onImageMoved?.call(_readyState.imageRect);\n    });\n\n    _applyScale(\n      _baseScale * detail.scale,\n      focalPoint: detail.localFocalPoint,\n    );\n  }\n\n  DateTime? _pointerSignalLastUpdated;\n\n  /// handle mouse pointer signal event\n  void _handlePointerSignal(PointerSignalEvent signal) {\n    if (signal is PointerScrollEvent) {\n      final now = DateTime.now();\n      if (_pointerSignalLastUpdated == null ||\n          now.difference(_pointerSignalLastUpdated!).inMilliseconds > 500) {\n        _pointerSignalLastUpdated = now;\n        _historyState.pushHistory(_readyState);\n      }\n\n      if (signal.scrollDelta.dy > 0) {\n        _applyScale(\n          _readyState.scale - widget.scrollZoomSensitivity,\n          focalPoint: signal.localPosition,\n        );\n      } else if (signal.scrollDelta.dy < 0) {\n        _applyScale(\n          _readyState.scale + widget.scrollZoomSensitivity,\n          focalPoint: signal.localPosition,\n        );\n      }\n    }\n  }\n\n  /// apply scale updated to view state\n  void _applyScale(\n    double nextScale, {\n    Offset? focalPoint,\n  }) {\n    final allowScale = widget.willUpdateScale?.call(nextScale) ?? true;\n    if (!allowScale) {\n      return;\n    }\n\n    setState(() {\n      _viewState = _readyState.scaleUpdated(\n        nextScale,\n        focalPoint: focalPoint,\n      );\n      widget.onImageMoved?.call(_readyState.imageRect);\n    });\n  }\n\n  @override\n  Widget build(BuildContext context) {\n    return !_viewState.isReady\n        ? Center(child: widget.progressIndicator)\n        : Stack(\n            clipBehavior: widget.clipBehavior,\n            children: [\n              Listener(\n                onPointerSignal: _handlePointerSignal,\n                child: GestureDetector(\n                  onScaleStart: widget.interactive ? _handleScaleStart : null,\n                  onScaleUpdate: widget.interactive ? _handleScaleUpdate : null,\n                  child: Container(\n                    color: widget.baseColor,\n                    width: MediaQuery.of(context).size.width,\n                    height: MediaQuery.of(context).size.height,\n                    child: Stack(\n                      children: [\n                        SizedBox.expand(),\n                        Positioned(\n                          left: _readyState.imageRect.left,\n                          top: _readyState.imageRect.top,\n                          child: Image.memory(\n                            widget.image,\n                            width: _readyState.imageRect.width,\n                            height: _readyState.imageRect.height,\n                            fit: BoxFit.contain,\n                            filterQuality: widget.filterQuality,\n                          ),\n                        ),\n                      ],\n                    ),\n                  ),\n                ),\n              ),\n              if (widget.overlayBuilder != null)\n                Positioned.fromRect(\n                  rect: _readyState.cropRect,\n                  child: IgnorePointer(\n                    child:\n                        widget.overlayBuilder!(context, _readyState.cropRect),\n                  ),\n                ),\n              IgnorePointer(\n                child: ClipPath(\n                  clipper: _readyState.withCircleUi\n                      ? CircleCropAreaClipper(_readyState.cropRect)\n                      : CropAreaClipper(_readyState.cropRect, widget.radius),\n                  child: Container(\n                    width: double.infinity,\n                    height: double.infinity,\n                    color: widget.maskColor ?? Colors.black.withAlpha(100),\n                  ),\n                ),\n              ),\n              if (!widget.interactive && !widget.fixCropRect)\n                Positioned(\n                  left: _readyState.cropRect.left,\n                  top: _readyState.cropRect.top,\n                  child: GestureDetector(\n                    onPanStart: (details) =>\n                        _historyState.pushHistory(_readyState),\n                    onPanUpdate: (details) => _updateCropRect(\n                      _readyState.moveRect(details.delta),\n                    ),\n                    child: Container(\n                      width: _readyState.cropRect.width,\n                      height: _readyState.cropRect.height,\n                      color: Colors.transparent,\n                    ),\n                  ),\n                ),\n              Positioned(\n                left: _readyState.cropRect.left - (dotTotalSize / 2),\n                top: _readyState.cropRect.top - (dotTotalSize / 2),\n                child: GestureDetector(\n                  onPanStart: (details) =>\n                      _historyState.pushHistory(_readyState),\n                  onPanUpdate: widget.fixCropRect\n                      ? null\n                      : (details) => _updateCropRect(\n                            _readyState.moveTopLeft(details.delta),\n                          ),\n                  child: widget.cornerDotBuilder\n                          ?.call(dotTotalSize, EdgeAlignment.topLeft) ??\n                      const DotControl(),\n                ),\n              ),\n              Positioned(\n                left: _readyState.cropRect.right - (dotTotalSize / 2),\n                top: _readyState.cropRect.top - (dotTotalSize / 2),\n                child: GestureDetector(\n                  onPanStart: (details) =>\n                      _historyState.pushHistory(_readyState),\n                  onPanUpdate: widget.fixCropRect\n                      ? null\n                      : (details) => _updateCropRect(\n                            _readyState.moveTopRight(details.delta),\n                          ),\n                  child: widget.cornerDotBuilder\n                          ?.call(dotTotalSize, EdgeAlignment.topRight) ??\n                      const DotControl(),\n                ),\n              ),\n              Positioned(\n                left: _readyState.cropRect.left - (dotTotalSize / 2),\n                top: _readyState.cropRect.bottom - (dotTotalSize / 2),\n                child: GestureDetector(\n                  onPanStart: (details) =>\n                      _historyState.pushHistory(_readyState),\n                  onPanUpdate: widget.fixCropRect\n                      ? null\n                      : (details) => _updateCropRect(\n                            _readyState.moveBottomLeft(details.delta),\n                          ),\n                  child: widget.cornerDotBuilder\n                          ?.call(dotTotalSize, EdgeAlignment.bottomLeft) ??\n                      const DotControl(),\n                ),\n              ),\n              Positioned(\n                left: _readyState.cropRect.right - (dotTotalSize / 2),\n                top: _readyState.cropRect.bottom - (dotTotalSize / 2),\n                child: GestureDetector(\n                  onPanStart: (details) =>\n                      _historyState.pushHistory(_readyState),\n                  onPanUpdate: widget.fixCropRect\n                      ? null\n                      : (details) => _updateCropRect(\n                            _readyState.moveBottomRight(details.delta),\n                          ),\n                  child: widget.cornerDotBuilder\n                          ?.call(dotTotalSize, EdgeAlignment.bottomRight) ??\n                      const DotControl(),\n                ),\n              ),\n            ],\n          );\n  }\n}\n\n/// top-level function for [compute]\n/// calls [ImageParser.call] with given arguments\nImageDetail _parseFunc(List<dynamic> args) {\n  final parser = args[0] as ImageParser;\n  final format = args[1] as ImageFormat?;\n  return parser(args[2] as Uint8List, inputFormat: format);\n}\n\n/// top-level function for [compute]\n/// calls [ImageCropper.call] with given arguments\nFutureOr<Uint8List> _cropFunc(List<dynamic> args) {\n  final cropper = args[0] as ImageCropper;\n  final originalImage = args[1];\n  final rect = args[2] as Rect;\n  final withCircleShape = args[3] as bool;\n  final outputFormat = args[4] as ImageFormat;\n\n  return cropper.call(\n    original: originalImage,\n    topLeft: Offset(rect.left, rect.top),\n    bottomRight: Offset(rect.right, rect.bottom),\n    shape: withCircleShape ? ImageShape.circle : ImageShape.rectangle,\n    outputFormat: outputFormat,\n  );\n}\n"
  },
  {
    "path": "lib/src/widget/crop_editor_view_state.dart",
    "content": "import 'dart:math';\n\nimport 'package:crop_your_image/src/widget/calculator.dart';\nimport 'package:flutter/widgets.dart';\nimport 'package:crop_your_image/crop_your_image.dart';\n\n/// state management class for _CropEditor\n/// see the link below for more details\n/// https://github.com/chooyan-eng/complex_local_state_management/blob/main/docs/local_state.md\ninterface class CropEditorViewState {\n  final Size viewportSize;\n  final bool withCircleUi;\n  final double? aspectRatio;\n\n  late final bool isReady;\n\n  CropEditorViewState({\n    required this.viewportSize,\n    required this.withCircleUi,\n    required this.aspectRatio,\n  });\n}\n\n/// implementation of [CropEditorViewState] for preparing state\nclass PreparingCropEditorViewState extends CropEditorViewState {\n  PreparingCropEditorViewState({\n    required super.viewportSize,\n    required super.withCircleUi,\n    required super.aspectRatio,\n  });\n\n  @override\n  bool isReady = false;\n\n  ReadyCropEditorViewState prepared(Size imageSize) {\n    return ReadyCropEditorViewState.prepared(\n      imageSize,\n      viewportSize: viewportSize,\n      withCircleUi: withCircleUi,\n      aspectRatio: aspectRatio,\n      scale: 1.0,\n    );\n  }\n}\n\n/// implementation of [CropEditorViewState] for ready state\nclass ReadyCropEditorViewState extends CropEditorViewState {\n  final Size imageSize;\n  final ViewportBasedRect cropRect;\n  final ViewportBasedRect imageRect;\n  final double scale;\n  final Offset offset;\n\n  factory ReadyCropEditorViewState.prepared(\n    Size imageSize, {\n    required Size viewportSize,\n    required double scale,\n    required double? aspectRatio,\n    required bool withCircleUi,\n  }) {\n    final isFitVertically = imageSize.aspectRatio < viewportSize.aspectRatio;\n    final calculator =\n        isFitVertically ? VerticalCalculator() : HorizontalCalculator();\n\n    return ReadyCropEditorViewState(\n      viewportSize: viewportSize,\n      imageSize: imageSize,\n      imageRect: calculator.imageRect(viewportSize, imageSize.aspectRatio),\n      cropRect: ViewportBasedRect.zero,\n      scale: scale,\n      aspectRatio: aspectRatio,\n      withCircleUi: withCircleUi,\n    );\n  }\n\n  ReadyCropEditorViewState({\n    required super.viewportSize,\n    required this.imageSize,\n    required this.imageRect,\n    required this.cropRect,\n    required this.scale,\n    this.offset = Offset.zero,\n    required super.aspectRatio,\n    required super.withCircleUi,\n  });\n\n  @override\n  bool isReady = true;\n\n  late final isFitVertically = imageSize.aspectRatio < viewportSize.aspectRatio;\n\n  late final calculator =\n      isFitVertically ? VerticalCalculator() : HorizontalCalculator();\n\n  late final screenSizeRatio = calculator.screenSizeRatio(\n    imageSize,\n    viewportSize,\n  );\n\n  late final rectToCrop = ImageBasedRect.fromLTWH(\n    (max(0, cropRect.left - imageRect.left)) * screenSizeRatio / scale,\n    (max(0, cropRect.top - imageRect.top)) * screenSizeRatio / scale,\n    cropRect.width * screenSizeRatio / scale,\n    cropRect.height * screenSizeRatio / scale,\n  );\n\n  late final scaleToCover = calculator.scaleToCover(viewportSize, imageRect);\n\n  ReadyCropEditorViewState imageSizeDetected(Size size) {\n    return copyWith(imageSize: size);\n  }\n\n  ReadyCropEditorViewState resetCropRect() {\n    return copyWith(\n      imageRect: calculator.imageRect(viewportSize, imageSize.aspectRatio),\n    );\n  }\n\n  ReadyCropEditorViewState correct(ViewportBasedRect newCropRect) {\n    return copyWith(cropRect: calculator.correct(newCropRect, imageRect));\n  }\n\n  ReadyCropEditorViewState cropRectInitialized({\n    double? initialSize,\n    double? aspectRatio,\n  }) {\n    final effectiveAspectRatio = withCircleUi ? 1.0 : aspectRatio ?? 1.0;\n    return copyWith(\n      cropRect: calculator.initialCropRect(\n        viewportSize,\n        imageRect,\n        effectiveAspectRatio,\n        initialSize ?? 1,\n      ),\n    );\n  }\n\n  ReadyCropEditorViewState cropRectWith(ImageBasedRect area) {\n    return copyWith(\n      cropRect: Rect.fromLTWH(\n        imageRect.left + area.left / screenSizeRatio,\n        imageRect.top + area.top / screenSizeRatio,\n        area.width / screenSizeRatio,\n        area.height / screenSizeRatio,\n      ),\n    );\n  }\n\n  // Methods for state updates\n  ReadyCropEditorViewState moveRect(Offset delta) {\n    final newCropRect = calculator.moveRect(\n      cropRect,\n      delta.dx,\n      delta.dy,\n      imageRect,\n    );\n    return copyWith(cropRect: newCropRect);\n  }\n\n  ReadyCropEditorViewState moveTopLeft(Offset delta) {\n    final newCropRect = calculator.moveTopLeft(\n      cropRect,\n      delta.dx,\n      delta.dy,\n      imageRect,\n      aspectRatio,\n    );\n    return copyWith(cropRect: newCropRect);\n  }\n\n  ReadyCropEditorViewState moveTopRight(Offset delta) {\n    final newCropRect = calculator.moveTopRight(\n      cropRect,\n      delta.dx,\n      delta.dy,\n      imageRect,\n      aspectRatio,\n    );\n    return copyWith(cropRect: newCropRect);\n  }\n\n  ReadyCropEditorViewState moveBottomLeft(Offset delta) {\n    final newCropRect = calculator.moveBottomLeft(\n      cropRect,\n      delta.dx,\n      delta.dy,\n      imageRect,\n      aspectRatio,\n    );\n    return copyWith(cropRect: newCropRect);\n  }\n\n  ReadyCropEditorViewState moveBottomRight(Offset delta) {\n    final newCropRect = calculator.moveBottomRight(\n      cropRect,\n      delta.dx,\n      delta.dy,\n      imageRect,\n      aspectRatio,\n    );\n    return copyWith(cropRect: newCropRect);\n  }\n\n  ReadyCropEditorViewState offsetUpdated(Offset delta) {\n    var movedLeft = imageRect.left + delta.dx;\n    if (movedLeft + imageRect.width < cropRect.right) {\n      movedLeft = cropRect.right - imageRect.width;\n    }\n\n    var movedTop = imageRect.top + delta.dy;\n    if (movedTop + imageRect.height < cropRect.bottom) {\n      movedTop = cropRect.bottom - imageRect.height;\n    }\n\n    return copyWith(\n      imageRect: ViewportBasedRect.fromLTWH(\n        min(cropRect.left, movedLeft),\n        min(cropRect.top, movedTop),\n        imageRect.width,\n        imageRect.height,\n      ),\n    );\n  }\n\n  ReadyCropEditorViewState scaleUpdated(\n    double nextScale, {\n    Offset? focalPoint,\n  }) {\n    final baseSize = isFitVertically\n        ? Size(\n            viewportSize.height * imageSize.aspectRatio,\n            viewportSize.height,\n          )\n        : Size(\n            viewportSize.width,\n            viewportSize.width / imageSize.aspectRatio,\n          );\n\n    // clamp the scale\n    nextScale = max(\n      nextScale,\n      max(cropRect.width / baseSize.width, cropRect.height / baseSize.height),\n    );\n\n    // no change\n    if (scale == nextScale) {\n      return this;\n    }\n\n    // width\n    final newWidth = baseSize.width * nextScale;\n    final horizontalFocalPointBias = focalPoint == null\n        ? 0.5\n        : (focalPoint.dx - imageRect.left) / imageRect.width;\n    final leftPositionDelta =\n        (newWidth - imageRect.width) * horizontalFocalPointBias;\n\n    // height\n    final newHeight = baseSize.height * nextScale;\n    final verticalFocalPointBias = focalPoint == null\n        ? 0.5\n        : (focalPoint.dy - imageRect.top) / imageRect.height;\n    final topPositionDelta =\n        (newHeight - imageRect.height) * verticalFocalPointBias;\n\n    // position\n    final newLeft = max(min(cropRect.left, imageRect.left - leftPositionDelta),\n        cropRect.right - newWidth);\n    final newTop = max(min(cropRect.top, imageRect.top - topPositionDelta),\n        cropRect.bottom - newHeight);\n\n    return copyWith(\n      scale: nextScale,\n      imageRect: ViewportBasedRect.fromLTWH(\n        newLeft,\n        newTop,\n        newWidth,\n        newHeight,\n      ),\n    );\n  }\n\n  ReadyCropEditorViewState copyWith({\n    Size? viewportSize,\n    Size? imageSize,\n    ViewportBasedRect? imageRect,\n    ViewportBasedRect? cropRect,\n    double? scale,\n    Offset? offset,\n    double? aspectRatio,\n    bool? withCircleUi,\n  }) {\n    return ReadyCropEditorViewState(\n      viewportSize: viewportSize ?? this.viewportSize,\n      imageSize: imageSize ?? this.imageSize,\n      imageRect: imageRect ?? this.imageRect,\n      cropRect: cropRect ?? this.cropRect,\n      scale: scale ?? this.scale,\n      offset: offset ?? this.offset,\n      aspectRatio: aspectRatio ?? this.aspectRatio,\n      withCircleUi: withCircleUi ?? this.withCircleUi,\n    );\n  }\n}\n"
  },
  {
    "path": "lib/src/widget/crop_result.dart",
    "content": "// Created by alex@justprodev.com on 04.03.2024.\n\nimport 'dart:typed_data';\n\nsealed class CropResult {\n  const CropResult();\n}\n\nclass CropSuccess extends CropResult {\n  const CropSuccess(this.croppedImage);\n  final Uint8List croppedImage;\n}\n\nclass CropFailure extends CropResult {\n  const CropFailure(this.cause, [this.stackTrace]);\n  final Object cause;\n  final StackTrace? stackTrace;\n}\n"
  },
  {
    "path": "lib/src/widget/dot_control.dart",
    "content": "import 'package:crop_your_image/src/widget/constants.dart';\nimport 'package:flutter/material.dart';\n\n/// Default dot widget placed on corners to control cropping area.\n/// This Widget automatically fits the appropriate size.\nclass DotControl extends StatelessWidget {\n  const DotControl({\n    Key? key,\n    this.color = Colors.white,\n    this.padding = 8,\n  }) : super(key: key);\n\n  /// [Color] of this widget. [Colors.white] by default.\n  final Color color;\n\n  /// The size of transparent padding which exists to make dot easier to touch.\n  /// Though total size of this widget cannot be changed,\n  /// but visible size can be changed by setting this value.\n  final double padding;\n\n  @override\n  Widget build(BuildContext context) {\n    return Container(\n      color: Colors.transparent,\n      width: dotTotalSize,\n      height: dotTotalSize,\n      child: Center(\n        child: ClipRRect(\n          borderRadius: BorderRadius.circular(dotTotalSize),\n          child: Container(\n            width: dotTotalSize - (padding * 2),\n            height: dotTotalSize - (padding * 2),\n            color: color,\n          ),\n        ),\n      ),\n    );\n  }\n}\n"
  },
  {
    "path": "lib/src/widget/edge_alignment.dart",
    "content": "/// position of dot control\nenum EdgeAlignment {\n  topLeft,\n  topRight,\n  bottomLeft,\n  bottomRight,\n}\n"
  },
  {
    "path": "lib/src/widget/history_state.dart",
    "content": "import 'package:crop_your_image/crop_your_image.dart';\nimport 'package:crop_your_image/src/widget/crop_editor_view_state.dart';\nimport 'package:flutter/foundation.dart';\n\nclass HistoryState {\n  HistoryState({required this.onHistoryChanged});\n\n  /// history of crop editor operation for undo\n  /// history is stored when zoom / pan is changed, as well as crop rect moved.\n  @visibleForTesting\n  final List<CropEditorViewState> history = [];\n\n  /// history of crop editor operation for redo\n  @visibleForTesting\n  final List<CropEditorViewState> redoHistory = [];\n\n  final HistoryChangedCallback? onHistoryChanged;\n\n  /// push current view state to history\n  /// this operation will clear redo history\n  void pushHistory(CropEditorViewState viewState) {\n    history.add(viewState);\n    redoHistory.clear();\n    onHistoryChanged?.call(\n      (undoCount: history.length, redoCount: redoHistory.length),\n    );\n  }\n\n  /// request [CropEditorViewState] for undo\n  /// this method will pop last history and push to redo history\n  CropEditorViewState? requestUndo(CropEditorViewState current) {\n    if (history.isEmpty) {\n      return null;\n    }\n\n    redoHistory.add(current);\n    final last = history.removeLast();\n\n    onHistoryChanged?.call(\n      (undoCount: history.length, redoCount: redoHistory.length),\n    );\n\n    return last;\n  }\n\n  /// request [CropEditorViewState] for redo\n  /// this method will pop last redo history\n  CropEditorViewState? requestRedo(CropEditorViewState current) {\n    if (redoHistory.isEmpty) {\n      return null;\n    }\n\n    history.add(current);\n    final last = redoHistory.removeLast();\n    onHistoryChanged?.call(\n      (undoCount: history.length, redoCount: redoHistory.length),\n    );\n    return last;\n  }\n}\n"
  },
  {
    "path": "lib/src/widget/initial_rect_builder.dart",
    "content": "import 'package:crop_your_image/src/widget/crop.dart';\n\n/// an interface for initial rect builder.\nabstract class InitialRectBuilder {\n  /// create [InitialRectBuilder] with builder function, with passed [viewportRect] and [imageRect].\n  /// see also [Crop.initialRectBuilder].\n  factory InitialRectBuilder.withBuilder(CroppingRectBuilder builder) =>\n      WithBuilderInitialRectBuilder(builder);\n\n  /// create [InitialRectBuilder] with [ImageBasedRect] named [area].\n  /// see also [Crop.initialRectBuilder].\n  factory InitialRectBuilder.withArea(ImageBasedRect area) =>\n      WithAreaInitialRectBuilder(area);\n\n  /// create [InitialRectBuilder] with [size] and [aspectRatio].\n  /// see also [Crop.initialRectBuilder].\n  factory InitialRectBuilder.withSizeAndRatio({\n    double? size,\n    double? aspectRatio,\n  }) =>\n      WithSizeAndRatioInitialRectBuilder(size, aspectRatio);\n}\n\n/// [InitialRectBuilder] with builder function.\nfinal class WithBuilderInitialRectBuilder implements InitialRectBuilder {\n  WithBuilderInitialRectBuilder(this._builder);\n\n  final CroppingRectBuilder _builder;\n\n  ViewportBasedRect build(\n    ViewportBasedRect viewportRect,\n    ImageBasedRect imageRect,\n  ) {\n    return _builder(viewportRect, imageRect);\n  }\n}\n\n/// [InitialRectBuilder] with [ImageBasedRect] named [area].\nfinal class WithAreaInitialRectBuilder implements InitialRectBuilder {\n  WithAreaInitialRectBuilder(this._area);\n\n  final ImageBasedRect _area;\n  ImageBasedRect get area => _area;\n}\n\n/// [InitialRectBuilder] with [size] and [aspectRatio].\nfinal class WithSizeAndRatioInitialRectBuilder implements InitialRectBuilder {\n  WithSizeAndRatioInitialRectBuilder(\n    this._size,\n    this._aspectRatio,\n  );\n\n  final double? _size;\n  final double? _aspectRatio;\n\n  double? get size => _size;\n  double? get aspectRatio => _aspectRatio;\n}\n"
  },
  {
    "path": "lib/src/widget/rect_crop_area_clipper.dart",
    "content": "import 'package:flutter/material.dart';\n\nclass CropAreaClipper extends CustomClipper<Path> {\n  CropAreaClipper(this.rect, this.radius);\n\n  final Rect rect;\n  final double radius;\n\n  @override\n  Path getClip(Size size) {\n    return Path()\n      ..addPath(\n        Path()\n          ..moveTo(rect.left, rect.top + radius)\n          ..arcToPoint(Offset(rect.left + radius, rect.top),\n              radius: Radius.circular(radius))\n          ..lineTo(rect.right - radius, rect.top)\n          ..arcToPoint(Offset(rect.right, rect.top + radius),\n              radius: Radius.circular(radius))\n          ..lineTo(rect.right, rect.bottom - radius)\n          ..arcToPoint(Offset(rect.right - radius, rect.bottom),\n              radius: Radius.circular(radius))\n          ..lineTo(rect.left + radius, rect.bottom)\n          ..arcToPoint(Offset(rect.left, rect.bottom - radius),\n              radius: Radius.circular(radius))\n          ..close(),\n        Offset.zero,\n      )\n      ..addRect(Rect.fromLTWH(0.0, 0.0, size.width, size.height))\n      ..fillType = PathFillType.evenOdd;\n  }\n\n  @override\n  bool shouldReclip(CustomClipper<Path> oldClipper) => true;\n}\n"
  },
  {
    "path": "lib/src/widget/widget.dart",
    "content": "export 'crop.dart';\nexport 'controller.dart';\nexport 'dot_control.dart';\nexport 'edge_alignment.dart';\nexport 'crop_result.dart';\nexport 'initial_rect_builder.dart';\n"
  },
  {
    "path": "pubspec.yaml",
    "content": "name: crop_your_image\ndescription: crop_your_image helps your app to embed Widgets for cropping images.\nversion: 2.0.0\nhomepage: https://github.com/chooyan-eng/crop_your_image\ntopics:\n  - crop\n  - image-cropper\n  - image\n\nenvironment:\n  sdk: '>=3.0.0 <4.0.0'\n\ndependencies:\n  flutter:\n    sdk: flutter\n\n  image: ^4.3.0\n\ndev_dependencies:\n  flutter_test:\n    sdk: flutter\n\n# For information on the generic Dart part of this file, see the\n# following page: https://dart.dev/tools/pub/pubspec\n\n# The following section is specific to Flutter.\nflutter:\n\n  # To add assets to your package, add an assets section, like this:\n  # assets:\n  #   - images/a_dot_burr.jpeg\n  #   - images/a_dot_ham.jpeg\n  #\n  # For details regarding assets in packages, see\n  # https://flutter.dev/assets-and-images/#from-packages\n  #\n  # An image asset can refer to one or more resolution-specific \"variants\", see\n  # https://flutter.dev/assets-and-images/#resolution-aware.\n\n  # To add custom fonts to your package, add a fonts section here,\n  # in this \"flutter\" section. Each entry in this list should have a\n  # \"family\" key with the font family name, and a \"fonts\" key with a\n  # list giving the asset and other descriptors for the font. For\n  # example:\n  # fonts:\n  #   - family: Schyler\n  #     fonts:\n  #       - asset: fonts/Schyler-Regular.ttf\n  #       - asset: fonts/Schyler-Italic.ttf\n  #         style: italic\n  #   - family: Trajan Pro\n  #     fonts:\n  #       - asset: fonts/TrajanPro.ttf\n  #       - asset: fonts/TrajanPro_Bold.ttf\n  #         weight: 700\n  #\n  # For details regarding fonts in packages, see\n  # https://flutter.dev/custom-fonts/#from-packages\n"
  },
  {
    "path": "test/logic/cropper/image_image_cropper_test.dart",
    "content": "import 'dart:io';\n\nimport 'package:crop_your_image/src/logic/cropper/errors.dart';\nimport 'package:crop_your_image/src/logic/cropper/image_image_cropper.dart';\nimport 'package:flutter_test/flutter_test.dart';\nimport 'package:image/image.dart';\n\nvoid main() {\n  late ImageImageCropper cropper;\n\n  setUp(() {\n    cropper = ImageImageCropper();\n  });\n\n  group('when png image with the size of 656 x 453 is given', () {\n    late Image testImage;\n\n    setUpAll(() {\n      // read a test image file with the size of 656 x 453\n      final data = File('test_resources/snow_landscape.png').readAsBytesSync();\n      testImage = decodeImage(data)!;\n    });\n\n    test(\n      'crop from Offset(100, 50) to Offset(200, 150)'\n      'generates the image sized 100 x 100',\n      () async {\n        final croppedImage = await cropper.call(\n          original: testImage,\n          topLeft: Offset(100, 50),\n          bottomRight: Offset(200, 150),\n        );\n\n        final imageDetail = decodeImage(croppedImage);\n\n        expect(imageDetail, isNotNull);\n        expect(imageDetail!.width, 100);\n        expect(imageDetail.height, 100);\n      },\n    );\n\n    test('the format of the cropped image is always png, not jpeg', () async {\n      final croppedImage = await cropper.call(\n        original: testImage,\n        topLeft: Offset(100, 50),\n        bottomRight: Offset(200, 150),\n      );\n\n      expect(PngDecoder().isValidFile(croppedImage), isTrue);\n      expect(JpegDecoder().isValidFile(croppedImage), isFalse);\n    });\n\n    test(\n      'InvalidRangeError is thrown if given Offset has negative value',\n      () async {\n        expect(\n          () async => await cropper.call(\n            original: testImage,\n            topLeft: Offset(-100, -50),\n            bottomRight: Offset(200, 150),\n          ),\n          throwsA(const TypeMatcher<InvalidRectException>()),\n        );\n\n        expect(\n          () async => await cropper.call(\n            original: testImage,\n            topLeft: Offset(0, 0),\n            bottomRight: Offset(-200, -150),\n          ),\n          throwsA(const TypeMatcher<InvalidRectException>()),\n        );\n      },\n    );\n\n    test(\n      'NegativeSizeError is thrown if the value of bottomRight is smaller than topLeft',\n      () async {\n        expect(\n          () async => await cropper.call(\n            original: testImage,\n            topLeft: Offset(200, 50),\n            bottomRight: Offset(100, 100),\n          ),\n          throwsA(const TypeMatcher<NegativeSizeException>()),\n        );\n      },\n    );\n\n    test(\n      'NegativeSizeError is NOT thrown'\n      'if the value of bottomRight is slightly greater than image size',\n      () async {\n        final croppedImage = await cropper.call(\n          original: testImage,\n          topLeft: Offset(100, 50),\n          bottomRight: Offset(656.0004, 453.00005),\n        );\n\n        final imageDetail = decodeImage(croppedImage);\n\n        expect(imageDetail, isNotNull);\n        expect(imageDetail!.width, 556);\n        expect(imageDetail.height, 403);\n      },\n    );\n  });\n}\n"
  },
  {
    "path": "test/logic/parser/image_image_parser_test.dart",
    "content": "import 'dart:io';\nimport 'dart:typed_data';\n\nimport 'package:crop_your_image/src/logic/format_detector/format.dart';\nimport 'package:crop_your_image/src/logic/parser/errors.dart';\nimport 'package:crop_your_image/src/logic/parser/image_image_parser.dart';\nimport 'package:flutter_test/flutter_test.dart';\n\nvoid main() {\n  final imageParser = imageImageParser;\n\n  group('when png image with the size of 656 x 453 is given', () {\n    late Uint8List testImage;\n\n    setUpAll(() {\n      // read a test image file with the size of 656 x 453\n      testImage = File('test_resources/snow_landscape.png').readAsBytesSync();\n    });\n\n    test(\n      'imageParser generates ImageDetail with width: 656, height: 453',\n      () {\n        final actual = imageParser(testImage);\n\n        expect(actual.width, 656);\n        expect(actual.height, 453);\n        expect(actual.image, isNotNull);\n      },\n    );\n\n    test(\n      'imageParser generates ImageDetail with width: 656, height: 453'\n      'when passing inputFormat: ImageFormat.png',\n      () {\n        final actual = imageParser(\n          testImage,\n          inputFormat: ImageFormat.png,\n        );\n\n        expect(actual.width, 656);\n        expect(actual.height, 453);\n        expect(actual.image, isNotNull);\n      },\n    );\n\n    test(\n      'imageParser throws InvalidInputFormatError'\n      'when passing wrong inputFormat, ImageFormat.jpeg',\n      () {\n        expect(\n          () => imageParser(\n            testImage,\n            inputFormat: ImageFormat.jpeg,\n          ),\n          throwsA(const TypeMatcher<InvalidInputFormatException>()),\n        );\n      },\n    );\n  });\n}\n"
  },
  {
    "path": "test/widget/calculator_test.dart",
    "content": "import 'dart:ui';\n\nimport 'package:crop_your_image/src/widget/calculator.dart';\nimport 'package:flutter_test/flutter_test.dart';\n\nvoid main() {\n  late Calculator calculator;\n\n  group(\n    'when image of original size (600, 400) fits horizontally'\n    'at screen size (300, 600)',\n    () {\n      late Size originalImageSize;\n      late Size viewportSize;\n\n      setUpAll(() {\n        calculator = HorizontalCalculator();\n        originalImageSize = Size(600, 400);\n        viewportSize = Size(300, 600);\n      });\n\n      test('Rect of image is Rect.fromLTRB(0, 200, 300, 400)', () {\n        final actual = calculator.imageRect(\n            viewportSize, originalImageSize.width / originalImageSize.height);\n\n        expect(actual, Rect.fromLTRB(0, 200, 300, 400));\n      });\n\n      test(\n          'Rect of crop area is Rect.fromLTRB(50, 200, 250, 400)'\n          'when aspectRatio: 1, sizeRatio: 1', () {\n        final imageRect = calculator.imageRect(\n            viewportSize, originalImageSize.width / originalImageSize.height);\n\n        final actual =\n            calculator.initialCropRect(viewportSize, imageRect, 1, 1);\n\n        expect(actual, Rect.fromLTRB(50, 200, 250, 400));\n      });\n\n      test(\n          'Rect of crop area is Rect.fromLTRB(100, 250, 200, 350)'\n          'when aspectRatio: 1, sizeRatio: 0.5', () {\n        final imageRect = calculator.imageRect(\n            viewportSize, originalImageSize.width / originalImageSize.height);\n\n        final actual =\n            calculator.initialCropRect(viewportSize, imageRect, 1, 0.5);\n\n        expect(actual, Rect.fromLTRB(100, 250, 200, 350));\n      });\n\n      test(\n          'Rect of crop area is Rect.fromLTRB(100, 250, 200, 350)'\n          'when aspectRatio: 3 / 4, sizeRatio: 1', () {\n        final imageRect = calculator.imageRect(\n            viewportSize, originalImageSize.width / originalImageSize.height);\n\n        final actual =\n            calculator.initialCropRect(viewportSize, imageRect, 3 / 4, 1);\n\n        expect(actual, Rect.fromLTRB(75, 200, 225, 400));\n      });\n\n      test(\n          'Rect of crop area is Rect.fromLTRB(100, 250, 200, 350)'\n          'when aspectRatio: 3 / 4, sizeRatio: 0.5', () {\n        final imageRect = calculator.imageRect(\n            viewportSize, originalImageSize.width / originalImageSize.height);\n\n        final actual =\n            calculator.initialCropRect(viewportSize, imageRect, 3 / 4, 0.5);\n\n        expect(actual, Rect.fromLTRB(112.5, 250, 187.5, 350));\n      });\n\n      test('Scale is 3.0 to cover viewport', () {\n        final imageRect = calculator.imageRect(\n            viewportSize, originalImageSize.width / originalImageSize.height);\n\n        final actual = calculator.scaleToCover(viewportSize, imageRect);\n\n        // scale Size(300, 200) to Size(900, 600) fits in Size(300, 600) of viewport\n        expect(actual, 3.0);\n      });\n\n      test('screenSizeRatio is 2.0', () {\n        final actual = calculator.screenSizeRatio(\n          Size(originalImageSize.width, originalImageSize.height),\n          viewportSize,\n        );\n\n        // viewport Size(300, 600) to original image Size(600, 400)\n        // comparing width, 600 / 300 = 2.0\n        expect(actual, 2.0);\n      });\n    },\n  );\n\n  group(\n    'when image of original size (400, 600) fits vertically'\n    'at screen size (400, 300)',\n    () {\n      late Size originalImageSize;\n      late Size viewportSize;\n\n      setUpAll(() {\n        calculator = VerticalCalculator();\n        originalImageSize = Size(400, 600);\n        viewportSize = Size(400, 300);\n      });\n\n      test('Rect of image is Rect.fromLTRB(100, 0, 300, 300)', () {\n        final actual = calculator.imageRect(\n            viewportSize, originalImageSize.width / originalImageSize.height);\n\n        expect(actual, Rect.fromLTRB(100, 0, 300, 300));\n      });\n\n      test(\n          'Rect of crop area is Rect.fromLTRB(100, 50, 300, 250)'\n          'when aspectRatio: 1, sizeRatio: 1', () {\n        final imageRect = calculator.imageRect(\n            viewportSize, originalImageSize.width / originalImageSize.height);\n\n        final actual =\n            calculator.initialCropRect(viewportSize, imageRect, 1, 1);\n\n        expect(actual, Rect.fromLTRB(100, 50, 300, 250));\n      });\n\n      test(\n          'Rect of crop area is Rect.fromLTRB(150, 100, 250, 200)'\n          'when aspectRatio: 1, sizeRatio: 0.5', () {\n        final imageRect = calculator.imageRect(\n            viewportSize, originalImageSize.width / originalImageSize.height);\n\n        final actual =\n            calculator.initialCropRect(viewportSize, imageRect, 1, 0.5);\n\n        expect(actual, Rect.fromLTRB(150, 100, 250, 200));\n      });\n\n      test(\n          'Rect of crop area is about Rect.fromLTRB(100.0, 16, 300.0, 283)'\n          'when aspectRatio: 3 / 4, sizeRatio: 1', () {\n        final imageRect = calculator.imageRect(\n            viewportSize, originalImageSize.width / originalImageSize.height);\n\n        final actual =\n            calculator.initialCropRect(viewportSize, imageRect, 3 / 4, 1);\n\n        expect(actual.left, 100.0);\n        expect(actual.top.floor(), 16);\n        expect(actual.right, 300.0);\n        expect(actual.bottom.floor(), 283);\n      });\n\n      test(\n          'Rect of crop area is Rect.fromLTRB(150, 83, 250, 216)'\n          'when aspectRatio: 3 / 4, sizeRatio: 0.5', () {\n        final imageRect = calculator.imageRect(\n            viewportSize, originalImageSize.width / originalImageSize.height);\n\n        final actual =\n            calculator.initialCropRect(viewportSize, imageRect, 3 / 4, 0.5);\n\n        expect(actual.left, 150.0);\n        expect(actual.top.floor(), 83);\n        expect(actual.right, 250.0);\n        expect(actual.bottom.floor(), 216);\n      });\n\n      test('Scale is 2.0 to cover viewport', () {\n        final imageRect = calculator.imageRect(\n            viewportSize, originalImageSize.width / originalImageSize.height);\n\n        final actual = calculator.scaleToCover(viewportSize, imageRect);\n\n        // scale Size(300, 200) to Size(600, 400) fits in Size(300, 400) of viewport\n        expect(actual, 2.0);\n      });\n\n      test('screenSizeRatio is 2.0', () {\n        final actual = calculator.screenSizeRatio(\n          Size(originalImageSize.width, originalImageSize.height),\n          viewportSize,\n        );\n\n        // viewport Size(400, 300) to original image Size(400, 600)\n        // comparing width, 600 / 300 = 2.0\n        expect(actual, 2.0);\n      });\n    },\n  );\n  group(\n      'when image fits crop editor horizontally'\n      'with Rect.fromLTWH(0, 50, 300, 250)', () {\n    late Rect imageRect;\n\n    setUpAll(() {\n      calculator = HorizontalCalculator();\n      imageRect = Rect.fromLTRB(0, 50, 300, 300);\n    });\n\n    group('starts with crop rect of ViewportBasedRect(50, 80, 150, 200)', () {\n      late Rect original;\n\n      setUpAll(() {\n        original = Rect.fromLTRB(50, 80, 150, 200);\n      });\n\n      test(\n          'moving crop rect by dx:10, dy:10'\n          'result in Rect(60, 90, 160, 210)', () {\n        final actual = calculator.moveRect(original, 10, 10, imageRect);\n\n        expect(actual, Rect.fromLTRB(60, 90, 160, 210));\n      });\n\n      test(\n          'moving crop rect by dx:150, dy:150'\n          'result in Rect(200, 180, 300, 300)', () {\n        final actual = calculator.moveRect(original, 150, 150, imageRect);\n\n        // considering image size, dy of crop rect\n        // can't be greater than imageRect.bottom\n        expect(actual, Rect.fromLTRB(200, 180, 300, 300));\n      });\n\n      test(\n          'moving crop rect by dx:-50, dy:-50'\n          'result in Rect(0, 50, 100, 170)', () {\n        final actual = calculator.moveRect(original, -50, -50, imageRect);\n\n        // considering image size, dx, dy of crop rect\n        // can't be smaller than imageRect.left, imageRect.top\n        expect(actual, Rect.fromLTRB(0, 50, 100, 170));\n      });\n\n      test(\n          'moving crop rect by dx:200, dy:50'\n          'result in Rect(200, 130, 300, 250)', () {\n        final actual = calculator.moveRect(original, 200, 50, imageRect);\n\n        // considering image size, dy of crop rect\n        // can't be greater than imageRect.bottom\n        expect(actual, Rect.fromLTRB(200, 130, 300, 250));\n      });\n\n      test(\n          'moving topLeft dot by dx:10, dy:10'\n          'result in Rect(60, 90, 150, 200)', () {\n        final actual =\n            calculator.moveTopLeft(original, 10, 10, imageRect, null);\n\n        expect(actual, Rect.fromLTRB(60, 90, 150, 200));\n      });\n\n      test(\n          'moving topLeft dot by dx:150, dy:150'\n          'result in Rect(110, 160, 150, 200)', () {\n        final actual =\n            calculator.moveTopLeft(original, 150, 150, imageRect, null);\n\n        // considering DotControl's size, topLeft can't be greater than\n        // Offset(dx: bottomRight.left - 40, dy: bottomRight.top - 40)\n        expect(actual, Rect.fromLTRB(110, 160, 150, 200));\n      });\n\n      test(\n          'moving topRight dot by dx:10, dy:10'\n          'result in Rect(50, 90, 160, 200)', () {\n        final actual =\n            calculator.moveTopRight(original, 10, 10, imageRect, null);\n\n        expect(actual, Rect.fromLTRB(50, 90, 160, 200));\n      });\n\n      test(\n          'moving topRight dot by dx:150, dy:150'\n          'result in Rect(50, 160, 300, 200)', () {\n        final actual =\n            calculator.moveTopRight(original, 150, 150, imageRect, null);\n\n        // considering DotControl's size,\n        // dy of topRight can't be greater than bottomRight.top - 40\n        expect(actual, Rect.fromLTRB(50, 160, 300, 200));\n      });\n\n      test(\n          'moving bottomLeft dot by dx:10, dy:10'\n          'result in Rect(60, 80, 150, 210)', () {\n        final actual =\n            calculator.moveBottomLeft(original, 10, 10, imageRect, null);\n\n        expect(actual, Rect.fromLTRB(60, 80, 150, 210));\n      });\n\n      test(\n          'moving bottomLeft dot by dx:150, dy:150'\n          'result in Rect(50, 160, 300, 200)', () {\n        final actual =\n            calculator.moveBottomLeft(original, 150, 150, imageRect, null);\n\n        // considering Image size,\n        // bottom of bottomLeft can't be greater than imageRect.bottom\n        expect(actual, Rect.fromLTRB(110, 80, 150, 300));\n      });\n\n      test(\n          'moving bottomRight dot by dx:10, dy:10'\n          'result in Rect(50, 80, 160, 210)', () {\n        final actual =\n            calculator.moveBottomRight(original, 10, 10, imageRect, null);\n\n        expect(actual, Rect.fromLTRB(50, 80, 160, 210));\n      });\n\n      test(\n          'moving bottomRight dot by dx:150, dy:150'\n          'result in Rect(50, 80, 300, 300)', () {\n        final actual =\n            calculator.moveBottomRight(original, 150, 150, imageRect, null);\n\n        // considering Image size,\n        // bottom of bottomRight can't be greater than imageRect.bottom\n        expect(actual, Rect.fromLTRB(50, 80, 300, 300));\n      });\n    });\n    group(\n        'when image rect is Rect.fromLTWH(0, 50, 300, 250)'\n        'regardless of fits horizontal or vertical', () {\n      late Rect imageRect;\n\n      setUpAll(() {\n        calculator = HorizontalCalculator();\n        imageRect = Rect.fromLTRB(0, 50, 300, 300);\n      });\n\n      group('starts with crop rect of ViewportBasedRect(50, 80, 150, 200)', () {\n        late Rect original;\n\n        setUpAll(() {\n          original = Rect.fromLTRB(50, 80, 150, 200);\n        });\n\n        test(\n            'moving crop rect by dx:10, dy:10'\n            'result in Rect(60, 90, 160, 210)', () {\n          final actual = calculator.moveRect(original, 10, 10, imageRect);\n\n          expect(actual, Rect.fromLTRB(60, 90, 160, 210));\n        });\n\n        test(\n            'moving crop rect by dx:150, dy:150'\n            'result in Rect(200, 180, 300, 300)', () {\n          final actual = calculator.moveRect(original, 150, 150, imageRect);\n\n          // considering image size, dy of crop rect\n          // can't be greater than imageRect.bottom\n          expect(actual, Rect.fromLTRB(200, 180, 300, 300));\n        });\n\n        test(\n            'moving topLeft dot by dx:10, dy:10'\n            'result in Rect(60, 90, 150, 200)', () {\n          final actual =\n              calculator.moveTopLeft(original, 10, 10, imageRect, null);\n\n          expect(actual, Rect.fromLTRB(60, 90, 150, 200));\n        });\n\n        test(\n            'moving topLeft dot by dx:150, dy:150'\n            'result in Rect(110, 160, 150, 200)', () {\n          final actual =\n              calculator.moveTopLeft(original, 150, 150, imageRect, null);\n\n          // considering DotControl's size, topLeft can't be greater than\n          // Offset(dx: bottomRight.left - 40, dy: bottomRight.top - 40)\n          expect(actual, Rect.fromLTRB(110, 160, 150, 200));\n        });\n\n        test(\n            'moving topRight dot by dx:10, dy:10'\n            'result in Rect(50, 90, 160, 200)', () {\n          final actual =\n              calculator.moveTopRight(original, 10, 10, imageRect, null);\n\n          expect(actual, Rect.fromLTRB(50, 90, 160, 200));\n        });\n\n        test(\n            'moving topRight dot by dx:150, dy:150'\n            'result in Rect(50, 160, 300, 200)', () {\n          final actual =\n              calculator.moveTopRight(original, 150, 150, imageRect, null);\n\n          // considering DotControl's size,\n          // dy of topRight can't be greater than bottomRight.top - 40\n          expect(actual, Rect.fromLTRB(50, 160, 300, 200));\n        });\n\n        test(\n            'moving bottomLeft dot by dx:10, dy:10'\n            'result in Rect(60, 80, 150, 210)', () {\n          final actual =\n              calculator.moveBottomLeft(original, 10, 10, imageRect, null);\n\n          expect(actual, Rect.fromLTRB(60, 80, 150, 210));\n        });\n\n        test(\n            'moving bottomLeft dot by dx:150, dy:150'\n            'result in Rect(50, 160, 300, 200)', () {\n          final actual =\n              calculator.moveBottomLeft(original, 150, 150, imageRect, null);\n\n          // considering Image size,\n          // bottom of bottomLeft can't be greater than imageRect.bottom\n          expect(actual, Rect.fromLTRB(110, 80, 150, 300));\n        });\n\n        test(\n            'moving bottomRight dot by dx:10, dy:10'\n            'result in Rect(50, 80, 160, 210)', () {\n          final actual =\n              calculator.moveBottomRight(original, 10, 10, imageRect, null);\n\n          expect(actual, Rect.fromLTRB(50, 80, 160, 210));\n        });\n\n        test(\n            'moving bottomRight dot by dx:150, dy:150'\n            'result in Rect(50, 80, 300, 300)', () {\n          final actual =\n              calculator.moveBottomRight(original, 150, 150, imageRect, null);\n\n          // considering Image size,\n          // bottom of bottomRight can't be greater than imageRect.bottom\n          expect(actual, Rect.fromLTRB(50, 80, 300, 300));\n        });\n      });\n    });\n  });\n}\n"
  },
  {
    "path": "test/widget/circle_crop_area_clipper_test.dart",
    "content": "import 'package:crop_your_image/src/widget/circle_crop_area_clipper.dart';\nimport 'package:flutter/material.dart';\nimport 'package:flutter_test/flutter_test.dart';\n\nvoid main() {\n  test('shouldReclip is always true', () {\n    final oldClipper = CircleCropAreaClipper(Rect.fromLTWH(50, 50, 100, 100));\n    final clipper = CircleCropAreaClipper(Rect.fromLTWH(50, 50, 100, 100));\n\n    expect(clipper.shouldReclip(oldClipper), true);\n  });\n\n  group('when viewport is 200 x 200', () {\n    final viewportSize = 200.0;\n    testWidgets(\n      'CircleCropAreaClipper clips center with 100x100 size of circle shape'\n      'if passing Rect.fromLTWH(50, 50, 100, 100)',\n      (WidgetTester tester) async {\n        Widget actual = Center(\n          child: SizedBox(\n            width: viewportSize,\n            height: viewportSize,\n            child: RepaintBoundary(\n              child: ClipPath(\n                clipper: CircleCropAreaClipper(Rect.fromLTWH(50, 50, 100, 100)),\n                child: ColoredBox(\n                  color: Colors.grey,\n                ),\n              ),\n            ),\n          ),\n        );\n        await tester.pumpWidget(actual);\n        await expectLater(\n          find.byType(RepaintBoundary),\n          matchesGoldenFile(\n              'circle_crop_area_clipper.viewportSize200x200.crop_center.png'),\n        );\n      },\n    );\n  });\n}\n"
  },
  {
    "path": "test/widget/controller_test.dart",
    "content": "import 'dart:async';\nimport 'dart:io';\nimport 'dart:typed_data';\nimport 'dart:ui';\n\nimport 'package:crop_your_image/src/widget/controller.dart';\nimport 'package:crop_your_image/src/widget/crop.dart';\nimport 'package:flutter_test/flutter_test.dart';\n\nimport 'helper.dart';\n\nvoid main() {\n  late Uint8List testLandscapeImage;\n  late Uint8List testPortraitImage;\n\n  group('when png image with the size of 656 x 453 is given', () {\n    setUpAll(() {\n      // read a test image file with the size of 656 x 453\n      testLandscapeImage =\n          File('test_resources/snow_landscape.png').readAsBytesSync();\n      testPortraitImage =\n          File('test_resources/snow_portrait.png').readAsBytesSync();\n    });\n\n    testWidgets(\n      'onCropped is called after calling CropController.crop()',\n      (tester) async {\n        // to ensure callback is called\n        final completer = Completer<void>();\n\n        final controller = CropController();\n        final widget = withMaterial(\n          Crop(\n            image: testLandscapeImage,\n            controller: controller,\n            onCropped: (value) => completer.complete(),\n          ),\n        );\n\n        await tester.runAsync(() async {\n          await tester.pumpWidget(widget);\n          // wait for parsing image\n          await Future.delayed(const Duration(seconds: 2));\n\n          controller.crop();\n          // wait for cropping image\n          await Future.delayed(const Duration(seconds: 2));\n        });\n\n        expect(completer.isCompleted, isTrue);\n      },\n    );\n\n    testWidgets(\n      'onCropped is called after calling CropController.cropCircle()',\n      (tester) async {\n        // to ensure callback is called\n        final completer = Completer<void>();\n\n        final controller = CropController();\n        final widget = withMaterial(\n          Crop(\n            image: testLandscapeImage,\n            controller: controller,\n            onCropped: (value) => completer.complete(),\n          ),\n        );\n\n        await tester.runAsync(() async {\n          await tester.pumpWidget(widget);\n          // wait for parsing image\n          await Future.delayed(const Duration(seconds: 2));\n\n          controller.cropCircle();\n          // wait for cropping image\n          await Future.delayed(const Duration(seconds: 2));\n        });\n\n        expect(completer.isCompleted, isTrue);\n      },\n    );\n\n    testWidgets(\n      'Rect of cropping area changes after setting another image',\n      (tester) async {\n        Rect? initialRect;\n        Rect? lastRect;\n\n        final controller = CropController();\n        final widget = withMaterial(\n          Crop(\n            image: testLandscapeImage,\n            controller: controller,\n            onCropped: (value) {},\n            onMoved: (rect, _) {\n              initialRect ??= rect;\n              lastRect = rect;\n            },\n          ),\n        );\n\n        await tester.runAsync(() async {\n          await tester.pumpWidget(widget);\n          // wait for parsing image\n          await Future.delayed(const Duration(seconds: 2));\n\n          controller.image = testPortraitImage;\n          // wait for cropping image\n          await Future.delayed(const Duration(seconds: 2));\n        });\n\n        expect(initialRect != lastRect, isTrue);\n      },\n    );\n\n    testWidgets(\n      'aspect ratio of Rect of cropping area is 4:6 if aspectRatio is set to 4/6',\n      (tester) async {\n        Rect? initialRect;\n        Rect? lastRect;\n\n        final controller = CropController();\n        final widget = withMaterial(\n          Crop(\n            image: testLandscapeImage,\n            controller: controller,\n            aspectRatio: 1,\n            onCropped: (value) {},\n            onMoved: (rect, _) {\n              initialRect ??= rect;\n              lastRect = rect;\n            },\n          ),\n        );\n\n        await tester.runAsync(() async {\n          await tester.pumpWidget(widget);\n          // wait for parsing image\n          await Future.delayed(const Duration(seconds: 2));\n\n          controller.aspectRatio = 4 / 6;\n          // wait for cropping image\n          await Future.delayed(const Duration(seconds: 2));\n        });\n\n        expect(initialRect != lastRect, isTrue);\n        expect(initialRect!.width / initialRect!.height, 1);\n        expect(lastRect!.width / lastRect!.height, 4 / 6);\n      },\n    );\n\n    testWidgets(\n      'Rect of cropping area is Rect(10, 50, 50, 100) after setting via controller.rect',\n      (tester) async {\n        Rect? lastRect;\n\n        final controller = CropController();\n        final widget = withMaterial(\n          Crop(\n            image: testLandscapeImage,\n            controller: controller,\n            aspectRatio: 1,\n            onCropped: (value) {},\n            onMoved: (rect, _) => lastRect = rect,\n          ),\n        );\n\n        await tester.runAsync(() async {\n          await tester.pumpWidget(widget);\n          // wait for parsing image\n          await Future.delayed(const Duration(seconds: 2));\n\n          controller.cropRect = Rect.fromLTRB(10, 50, 50, 100);\n          // wait for cropping image\n          await Future.delayed(const Duration(seconds: 2));\n        });\n\n        expect(lastRect!.left, 10);\n        expect(lastRect!.top, 50);\n        expect(lastRect!.right, 50);\n        expect(lastRect!.bottom, 100);\n      },\n    );\n\n    testWidgets(\n      'Rect of cropping area is Rect(10, 46.4, 50, 100)'\n      'after setting Rect(10, 10, 50, 100) via controller.rect',\n      (tester) async {\n        Rect? lastRect;\n\n        final controller = CropController();\n        final widget = withMaterial(\n          Crop(\n            image: testLandscapeImage,\n            controller: controller,\n            aspectRatio: 1,\n            onCropped: (value) {},\n            onMoved: (rect, _) => lastRect = rect,\n          ),\n        );\n\n        await tester.runAsync(() async {\n          await tester.pumpWidget(widget);\n          // wait for parsing image\n          await Future.delayed(const Duration(seconds: 2));\n\n          controller.cropRect = Rect.fromLTRB(10, 10, 50, 100);\n          // wait for cropping image\n          await Future.delayed(const Duration(seconds: 2));\n        });\n\n        expect(lastRect!.left, 10);\n\n        // Because top: 10 is out of the image,\n        // it is corrected to 46.4, which is top bound of the image.\n        expect(lastRect!.top.floor(), 46);\n\n        expect(lastRect!.right, 50);\n        expect(lastRect!.bottom, 100);\n      },\n    );\n\n    testWidgets(\n      'Rect of cropping area is Rect(4, 50, 22, 92)'\n      'after setting Rect(10, 10, 50, 100) via controller.area',\n      (tester) async {\n        Rect? lastRect;\n\n        final controller = CropController();\n        final widget = withMaterial(\n          Crop(\n            image: testLandscapeImage,\n            controller: controller,\n            aspectRatio: 1,\n            onCropped: (value) {},\n            onMoved: (rect, _) => lastRect = rect,\n          ),\n        );\n\n        await tester.runAsync(() async {\n          await tester.pumpWidget(widget);\n          // wait for parsing image\n          await Future.delayed(const Duration(seconds: 2));\n\n          // set Rect based on original image size\n          controller.area = Rect.fromLTRB(10, 10, 50, 100);\n\n          // wait for cropping image\n          await Future.delayed(const Duration(seconds: 2));\n        });\n\n        // expected Rect is based on viewport\n        expect(lastRect!.left.floor(), 4);\n        expect(lastRect!.top.floor(), 50);\n        expect(lastRect!.right.floor(), 22);\n        expect(lastRect!.bottom.floor(), 92);\n      },\n    );\n  });\n}\n"
  },
  {
    "path": "test/widget/crop_editor_view_state_test.dart",
    "content": "import 'package:flutter/widgets.dart';\nimport 'package:flutter_test/flutter_test.dart';\nimport 'package:crop_your_image/src/widget/crop_editor_view_state.dart';\n\nvoid main() {\n  group('PreparingCropEditorViewState', () {\n    final defaultViewportSize = Size(360, 200);\n\n    late PreparingCropEditorViewState state;\n\n    setUp(() {\n      state = PreparingCropEditorViewState(\n        viewportSize: defaultViewportSize,\n        withCircleUi: false,\n        aspectRatio: 1.5,\n      );\n    });\n\n    test('preserves all the given values', () {\n      expect(state.viewportSize, defaultViewportSize);\n      expect(state.withCircleUi, false);\n      expect(state.aspectRatio, 1.5);\n    });\n\n    test('state is not ready', () {\n      expect(state.isReady, false);\n    });\n\n    test('prepared method creates ReadyCropEditorViewState', () {\n      final imageSize = Size(800, 600);\n\n      final readyState = state.prepared(imageSize);\n\n      expect(readyState, isA<ReadyCropEditorViewState>());\n      expect(readyState.isReady, true);\n      expect(readyState.viewportSize, defaultViewportSize);\n      expect(readyState.imageSize, imageSize);\n      expect(readyState.scale, 1.0);\n      expect(readyState.withCircleUi, false);\n      expect(readyState.aspectRatio, 1.5);\n    });\n  });\n\n  group('ReadyCropEditorViewState', () {\n    final defaultViewportSize = Size(360, 200);\n    final defaultImageSize = Size(800, 600);\n\n    late ReadyCropEditorViewState state;\n\n    setUp(() {\n      state = ReadyCropEditorViewState.prepared(\n        defaultImageSize,\n        viewportSize: defaultViewportSize,\n        scale: 1.0,\n        aspectRatio: null,\n        withCircleUi: false,\n      );\n    });\n\n    test('prepared factory creates correct initial state', () {\n      expect(state.isReady, true);\n      expect(state.viewportSize, defaultViewportSize);\n      expect(state.imageSize, defaultImageSize);\n      expect(state.scale, 1.0);\n      expect(state.withCircleUi, false);\n      expect(state.aspectRatio, null);\n    });\n\n    test('isFitVertically calculates correctly', () {\n      final verticalState = ReadyCropEditorViewState.prepared(\n        Size(300, 800), // vertical image\n        viewportSize: defaultViewportSize,\n        scale: 1.0,\n        aspectRatio: null,\n        withCircleUi: false,\n      );\n\n      final horizontalState = ReadyCropEditorViewState.prepared(\n        Size(800, 300), // horizontal image\n        viewportSize: defaultViewportSize,\n        scale: 1.0,\n        aspectRatio: null,\n        withCircleUi: false,\n      );\n\n      expect(verticalState.isFitVertically, true);\n      expect(horizontalState.isFitVertically, false);\n    });\n\n    group('moveRect', () {\n      test('moves rect within bounds', () {\n        final initialRect = Rect.fromLTWH(30, 30, 50, 50);\n        final stateWithRect = state.copyWith(cropRect: initialRect);\n\n        final movedState = stateWithRect.moveRect(const Offset(50, 30));\n\n        expect(movedState.cropRect.left, 80);\n        expect(movedState.cropRect.top, 60);\n        expect(movedState.cropRect.width, 50);\n        expect(movedState.cropRect.height, 50);\n      });\n\n      test('constrains movement within image bounds', () {\n        final initialRect = Rect.fromLTWH(50, 50, 100, 100);\n        final stateWithRect = state.copyWith(cropRect: initialRect);\n\n        final movedState = stateWithRect.moveRect(const Offset(-100, -100));\n\n        // Check that the rect stays within bounds\n        expect(movedState.cropRect.left, closeTo(46, 1));\n        expect(movedState.cropRect.top, 0);\n        expect(movedState.cropRect.width, 100);\n        expect(movedState.cropRect.height, 100);\n      });\n    });\n\n    group('scaleUpdated', () {\n      test('updates scale with constraints', () {\n        final initialRect = Rect.fromLTWH(100, 100, 200, 200);\n        final stateWithRect = state.copyWith(cropRect: initialRect);\n\n        final scaledState = stateWithRect.scaleUpdated(2.0);\n\n        expect(scaledState.scale, 2.0);\n        expect(scaledState.imageRect.width,\n            greaterThan(stateWithRect.imageRect.width));\n        expect(scaledState.imageRect.height,\n            greaterThan(stateWithRect.imageRect.height));\n      });\n\n      test('maintains minimum scale to cover crop rect', () {\n        final initialRect = Rect.fromLTWH(100, 100, 200, 200);\n        final stateWithRect = state.copyWith(cropRect: initialRect);\n\n        // Try to scale smaller than minimum allowed\n        final scaledState = stateWithRect.scaleUpdated(0.1);\n\n        // Scale should be constrained to minimum required to cover crop rect\n        expect(scaledState.imageRect.width,\n            greaterThanOrEqualTo(initialRect.width));\n        expect(scaledState.imageRect.height,\n            greaterThanOrEqualTo(initialRect.height));\n      });\n    });\n\n    test('cropRectInitialized respects aspect ratio', () {\n      final initializedState = state.cropRectInitialized(\n        aspectRatio: 1.5,\n        initialSize: 0.8,\n      );\n\n      final ratio =\n          initializedState.cropRect.width / initializedState.cropRect.height;\n      expect(ratio, closeTo(1.5, 0.01));\n    });\n\n    test('withCircleUi forces aspect ratio to 1.0', () {\n      final state = ReadyCropEditorViewState.prepared(\n        defaultImageSize,\n        viewportSize: defaultViewportSize,\n        scale: 1.0,\n        aspectRatio: 1.5, // This should be ignored when withCircleUi is true\n        withCircleUi: true,\n      );\n\n      final initializedState = state.cropRectInitialized();\n\n      final ratio =\n          initializedState.cropRect.width / initializedState.cropRect.height;\n      expect(ratio, closeTo(1.0, 0.01));\n    });\n  });\n}\n"
  },
  {
    "path": "test/widget/crop_test.dart",
    "content": "import 'dart:async';\nimport 'dart:io';\nimport 'dart:typed_data';\n\nimport 'package:crop_your_image/crop_your_image.dart';\nimport 'package:flutter/material.dart';\nimport 'package:flutter_test/flutter_test.dart';\n\nimport 'helper.dart';\n\nvoid main() {\n  late Uint8List testImage;\n\n  group('when png image with the size of 656 x 453 is given', () {\n    setUpAll(() {\n      // read a test image file with the size of 656 x 453\n      testImage = File('test_resources/snow_landscape.png').readAsBytesSync();\n    });\n\n    testWidgets(\n      'pump Crop with minimum arguments works without errors',\n      (tester) async {\n        final widget = withMaterial(\n          Crop(\n            image: testImage,\n            onCropped: (value) {},\n          ),\n        );\n\n        await tester.pumpWidget(widget);\n      },\n    );\n\n    group('onCropped', () {\n      testWidgets(\n        'onCropped is called after calling CropController.crop()',\n            (tester) async {\n          // to ensure callback is called\n          final completer = Completer<void>();\n\n          final controller = CropController();\n          final widget = withMaterial(\n            Crop(\n              image: testImage,\n              onCropped: (value) => completer.complete(),\n              controller: controller,\n            ),\n          );\n\n          await tester.runAsync(() async {\n            await tester.pumpWidget(widget);\n            // wait for parsing image\n            await Future.delayed(const Duration(seconds: 2));\n\n            controller.crop();\n            // wait for cropping image\n            await Future.delayed(const Duration(seconds: 2));\n          });\n\n          expect(completer.isCompleted, isTrue);\n        },\n      );\n\n      testWidgets(\n        'onCropped returns an error if cropping fails',\n            (tester) async {\n          // to ensure callback is called\n          bool hasError = false;\n\n          final controller = CropController();\n          final widget = withMaterial(\n            Crop(\n              image: testImage,\n              onCropped: (value) {\n                hasError = value is CropFailure;\n              },\n              controller: controller,\n              imageCropper: FailureCropper(),\n            ),\n          );\n\n          await tester.runAsync(() async {\n            await tester.pumpWidget(widget);\n            // wait for parsing image\n            await Future.delayed(const Duration(seconds: 2));\n\n            controller.crop();\n\n            // wait for cropping image\n            await Future.delayed(const Duration(seconds: 2));\n          });\n\n          expect(hasError, isTrue);\n        },\n      );\n    });\n\n\n    testWidgets(\n      'status is changing with null -> .ready -> .cropping -> .ready',\n      (tester) async {\n        // to ensure status is changing\n        CropStatus? lastStatus;\n\n        final controller = CropController();\n        final widget = withMaterial(\n          Crop(\n            image: testImage,\n            onCropped: (value) {},\n            controller: controller,\n            onStatusChanged: (status) => lastStatus = status,\n          ),\n        );\n\n        await tester.runAsync(() async {\n          await tester.pumpWidget(widget);\n          expect(lastStatus, isNull);\n\n          // wait for parsing image\n          await Future.delayed(const Duration(seconds: 2));\n          expect(lastStatus, CropStatus.ready);\n\n          controller.crop();\n          expect(lastStatus, CropStatus.cropping);\n\n          // wait for cropping image\n          await Future.delayed(const Duration(seconds: 2));\n        });\n\n        expect(lastStatus, CropStatus.ready);\n      },\n    );\n\n    testWidgets(\n      'initialRectBuilder is called right after pumpWidget',\n      (tester) async {\n        // to ensure callback is called\n        final completer = Completer<void>();\n\n        final widget = withMaterial(\n          Crop(\n            image: testImage,\n            onCropped: (value) {},\n            initialRectBuilder: InitialRectBuilder.withBuilder(\n              (viewportRect, imageRect) {\n                completer.complete();\n                return imageRect;\n              },\n            ),\n          ),\n        );\n\n        await tester.runAsync(() async {\n          await tester.pumpWidget(widget);\n          // wait for parsing image\n          await Future.delayed(const Duration(seconds: 2));\n        });\n\n        expect(completer.isCompleted, isTrue);\n      },\n    );\n\n    testWidgets(\n      'onMoved is called when dragging DotControl',\n      (tester) async {\n        // to ensure callback is called\n        final completer = Completer<void>();\n\n        final widget = withMaterial(\n          Crop(\n            image: testImage,\n            onCropped: (value) {},\n            onMoved: (_, __) {\n              if (!completer.isCompleted) {\n                completer.complete();\n              }\n            },\n          ),\n        );\n\n        await tester.runAsync(() async {\n          await tester.pumpWidget(widget);\n\n          // wait for parsing image\n          await Future.delayed(const Duration(seconds: 4));\n\n          await tester.pumpAndSettle();\n          final dotControl = find.byType(DotControl);\n          expect(dotControl, findsNWidgets(4));\n\n          await tester.drag(dotControl.first, Offset(10, 10));\n        });\n\n        expect(completer.isCompleted, isTrue);\n      },\n    );\n\n    testWidgets(\n      'customized dot controls from cornerDotBuilder is visible and available',\n      (tester) async {\n        // to ensure callback is called\n        final completer = Completer<void>();\n\n        final widget = withMaterial(\n          Crop(\n            image: testImage,\n            onCropped: (value) {},\n            onMoved: (_, __) {\n              if (!completer.isCompleted) {\n                completer.complete();\n              }\n            },\n            cornerDotBuilder: (size, edgeAlignment) {\n              return const Icon(Icons.circle);\n            },\n          ),\n        );\n\n        await tester.runAsync(() async {\n          await tester.pumpWidget(widget);\n\n          // wait for parsing image\n          await Future.delayed(const Duration(seconds: 4));\n\n          await tester.pumpAndSettle();\n          final customDotControl = find.byType(Icon);\n          expect(customDotControl, findsNWidgets(4));\n\n          await tester.drag(customDotControl.first, Offset(10, 10));\n        });\n\n        expect(completer.isCompleted, isTrue);\n      },\n    );\n\n    testWidgets(\n      'dot control is still visible and available when only fixArea is set true',\n      (tester) async {\n        // to ensure callback is called\n        final completer = Completer<void>();\n\n        final widget = withMaterial(\n          Crop(\n            image: testImage,\n            onCropped: (value) {},\n            onMoved: (_, __) {\n              if (!completer.isCompleted) {\n                completer.complete();\n              }\n            },\n            fixCropRect: true,\n          ),\n        );\n\n        await tester.runAsync(() async {\n          await tester.pumpWidget(widget);\n\n          // wait for parsing image\n          await Future.delayed(const Duration(seconds: 4));\n\n          await tester.pumpAndSettle();\n          final dotControl = find.byType(DotControl);\n          expect(dotControl, findsNWidgets(4));\n\n          await tester.drag(dotControl.first, Offset(10, 10));\n        });\n\n        expect(completer.isCompleted, isTrue);\n      },\n    );\n\n    testWidgets(\n      'dot control is not movable if fixArea and interactive are both set true',\n      (tester) async {\n        // to ensure callback is only called when initialized\n        var calledCount = 0;\n\n        final widget = withMaterial(\n          Crop(\n            image: testImage,\n            onCropped: (value) {},\n            onMoved: (_, __) {\n              calledCount++;\n            },\n            fixCropRect: true,\n            interactive: true,\n          ),\n        );\n\n        await tester.runAsync(() async {\n          await tester.pumpWidget(widget);\n\n          // wait for parsing image\n          await Future.delayed(const Duration(seconds: 4));\n\n          await tester.pumpAndSettle();\n\n          // dot control is still visible\n          final dotControl = find.byType(DotControl);\n          expect(dotControl, findsNWidgets(4));\n\n          await tester.drag(dotControl.first, Offset(10, 10));\n        });\n\n        expect(calledCount, 1);\n      },\n    );\n\n    testWidgets(\n      'custom FormatDetector is called if given to Crop constructor',\n      (tester) async {\n        // to ensure callback is called\n        final completer = Completer<void>();\n\n        final widget = withMaterial(\n          Crop(\n            image: testImage,\n            onCropped: (value) {},\n            formatDetector: (data) {\n              completer.complete();\n              return ImageFormat.png;\n            },\n          ),\n        );\n\n        await tester.runAsync(() async {\n          await tester.pumpWidget(widget);\n\n          // wait for parsing image\n          await Future.delayed(const Duration(seconds: 4));\n        });\n\n        expect(completer.isCompleted, isTrue);\n      },\n    );\n  });\n}\n"
  },
  {
    "path": "test/widget/helper.dart",
    "content": "import 'package:crop_your_image/src/logic/cropper/image_cropper.dart';\nimport 'package:flutter/material.dart';\n\nWidget withMaterial(Widget widget) {\n  return MaterialApp(\n    home: Scaffold(\n      // TODO(chooyan-eng): fix error on cropping if image is not large enough comparing to viewport\n      // body: SizedBox.expand(child: widget),\n      body: SizedBox(width: 300, height: 300, child: widget),\n    ),\n  );\n}\n\n/// [ImageCropper] that always fails\nclass FailureCropper extends ImageCropper {\n  @override\n  CircleCropper get circleCropper => throw UnimplementedError();\n\n  @override\n  RectCropper get rectCropper => throw UnimplementedError();\n\n  @override\n  RectValidator get rectValidator => throw Exception();\n}\n"
  },
  {
    "path": "test/widget/history_state_test.dart",
    "content": "import 'package:crop_your_image/crop_your_image.dart';\nimport 'package:flutter/widgets.dart';\nimport 'package:flutter_test/flutter_test.dart';\nimport 'package:crop_your_image/src/widget/crop_editor_view_state.dart';\nimport 'package:crop_your_image/src/widget/history_state.dart';\n\nvoid main() {\n  final defaultViewportSize = Size(360, 200);\n  final defaultImageSize = Size(800, 600);\n\n  late HistoryState historyState;\n  late List<History> historyChangedCalls;\n\n  setUp(() {\n    historyChangedCalls = [];\n    historyState = HistoryState(\n      onHistoryChanged: (history) => historyChangedCalls.add(history),\n    );\n  });\n\n  ReadyCropEditorViewState createViewState({double scale = 1.0}) {\n    return ReadyCropEditorViewState.prepared(\n      defaultImageSize,\n      viewportSize: defaultViewportSize,\n      scale: scale,\n      aspectRatio: null,\n      withCircleUi: false,\n    );\n  }\n\n  test('initial state has empty history', () {\n    expect(historyState.history, isEmpty);\n    expect(historyState.redoHistory, isEmpty);\n  });\n\n  test('pushHistory adds state and clears redo history', () {\n    final state1 = createViewState(scale: 1.0);\n    final state2 = createViewState(scale: 1.5);\n\n    historyState.pushHistory(state1);\n    historyState.pushHistory(state2);\n\n    expect(historyState.history.length, 2);\n    expect(historyState.redoHistory, isEmpty);\n    expect(historyChangedCalls, [\n      (undoCount: 1, redoCount: 0),\n      (undoCount: 2, redoCount: 0),\n    ]);\n  });\n\n  test('requestUndo returns last state and moves it to redo history', () {\n    final state1 = createViewState(scale: 1.0);\n    final state2 = createViewState(scale: 1.5);\n\n    historyState.pushHistory(state1);\n    historyState.pushHistory(state2);\n\n    final undoState = historyState.requestUndo(createViewState());\n\n    expect(undoState, state2);\n    expect(historyState.history.length, 1);\n    expect(historyState.redoHistory.length, 1);\n    expect(historyChangedCalls, [\n      (undoCount: 1, redoCount: 0),\n      (undoCount: 2, redoCount: 0),\n      (undoCount: 1, redoCount: 1),\n    ]);\n  });\n\n  test('requestUndo returns null when history is empty', () {\n    final undoState = historyState.requestUndo(createViewState(scale: 1.0));\n\n    expect(undoState, null);\n    expect(historyState.history, isEmpty);\n    expect(historyState.redoHistory, isEmpty);\n    expect(historyChangedCalls, isEmpty);\n  });\n\n  test('requestRedo returns last redo state and moves it to history', () {\n    final state1 = createViewState(scale: 1.0);\n    final state2 = createViewState(scale: 1.5);\n\n    historyState.pushHistory(state1);\n    historyState.pushHistory(state2);\n\n    final current = createViewState();\n    historyState.requestUndo(current); // add current to redo history\n\n    final redoState = historyState.requestRedo(current);\n\n    expect(redoState, current);\n    expect(historyState.history.length, 2);\n    expect(historyState.redoHistory, isEmpty);\n    expect(historyChangedCalls, [\n      (undoCount: 1, redoCount: 0),\n      (undoCount: 2, redoCount: 0),\n      (undoCount: 1, redoCount: 1),\n      (undoCount: 2, redoCount: 0),\n    ]);\n  });\n\n  test('requestRedo returns null when redo history is empty', () {\n    final redoState = historyState.requestRedo(createViewState());\n\n    expect(redoState, null);\n    expect(historyState.history, isEmpty);\n    expect(historyState.redoHistory, isEmpty);\n    expect(historyChangedCalls, isEmpty);\n  });\n\n  test('pushing new state clears redo history', () {\n    final state1 = createViewState(scale: 1.0);\n    final state2 = createViewState(scale: 1.5);\n    final state3 = createViewState(scale: 2.0);\n\n    historyState.pushHistory(state1);\n    historyState.pushHistory(state2);\n    historyState.requestUndo(createViewState()); // Move state2 to redo history\n    historyState.pushHistory(state3); // Should clear redo history\n\n    expect(historyState.history.length, 2);\n    expect(historyState.redoHistory, isEmpty);\n    expect(historyChangedCalls, [\n      (undoCount: 1, redoCount: 0),\n      (undoCount: 2, redoCount: 0),\n      (undoCount: 1, redoCount: 1),\n      (undoCount: 2, redoCount: 0),\n    ]);\n  });\n}\n"
  },
  {
    "path": "test/widget/rect_crop_area_clipper_test.dart",
    "content": "import 'package:crop_your_image/src/widget/rect_crop_area_clipper.dart';\nimport 'package:flutter/material.dart';\nimport 'package:flutter_test/flutter_test.dart';\n\nvoid main() {\n  test('shouldReclip is always true', () {\n    final oldClipper = CropAreaClipper(Rect.fromLTWH(50, 50, 100, 100), 0);\n    final clipper = CropAreaClipper(Rect.fromLTWH(50, 50, 100, 100), 0);\n\n    expect(clipper.shouldReclip(oldClipper), true);\n  });\n\n  group('when viewport is 200 x 200', () {\n    final viewportSize = 200.0;\n    testWidgets(\n      'CropAreaClipper clips center with 100x100 size of rectangular shape'\n      'if passing Rect.fromLTWH(50, 50, 100, 100)',\n      (WidgetTester tester) async {\n        await tester.pumpWidget(\n          _ViewportWidget(\n            size: viewportSize,\n            targetWidget: RepaintBoundary(\n              child: ClipPath(\n                clipper: CropAreaClipper(Rect.fromLTWH(50, 50, 100, 100), 0),\n                child: ColoredBox(\n                  color: Colors.grey,\n                ),\n              ),\n            ),\n          ),\n        );\n\n        await expectLater(\n          find.byType(RepaintBoundary),\n          matchesGoldenFile(\n            'rect_crop_area_clipper.viewportSize200x200.crop_center.png',\n          ),\n        );\n      },\n    );\n\n    testWidgets(\n      'CropAreaClipper clips center with 100x100 size of rectangular shape with rounded corners'\n      'if passing Rect.fromLTWH(50, 50, 100, 100) and radius: 20',\n      (WidgetTester tester) async {\n        await tester.pumpWidget(\n          _ViewportWidget(\n            size: viewportSize,\n            targetWidget: RepaintBoundary(\n              child: ClipPath(\n                clipper: CropAreaClipper(Rect.fromLTWH(50, 50, 100, 100), 20),\n                child: ColoredBox(\n                  color: Colors.grey,\n                ),\n              ),\n            ),\n          ),\n        );\n\n        await expectLater(\n          find.byType(RepaintBoundary),\n          matchesGoldenFile(\n            'rect_crop_area_clipper.viewportSize200x200.crop_center_radius20.png',\n          ),\n        );\n      },\n    );\n  });\n}\n\nclass _ViewportWidget extends StatelessWidget {\n  const _ViewportWidget({\n    required this.size,\n    required this.targetWidget,\n  });\n\n  final double size;\n  final RepaintBoundary targetWidget;\n\n  @override\n  Widget build(BuildContext context) {\n    return Center(\n      child: SizedBox(\n        width: size,\n        height: size,\n        child: targetWidget,\n      ),\n    );\n  }\n}\n"
  }
]