1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 13:58:47 +00:00
Files
samples/asset_transformation/pubspec.yaml
Eric Windmill 2999d738b8 Dart 3.9 / Flutter 3.35 [first LLM release] (#2714)
I got carried away with Gemini and basically rewrote CI and the release
process for the new LLM reality. This work was largely completed by
Gemini.

- Bump all SDK versions to the current beta (3.9.0-0)
- Run `flutter channel beta`
- Wrote `ci_script.dart` to replace the bash scripts
- Converted repository to pub workspace #2499 
- Added llm.md and release.md
- Added redirect for deprecated Samples Index

## Pre-launch Checklist

- [x] I read the [Flutter Style Guide] _recently_, and have followed its
advice.
- [x] I signed the [CLA].
- [x] I read the [Contributors Guide].
- [x] I have added sample code updates to the [changelog].
- [x] I updated/added relevant documentation (doc comments with `///`).
2025-08-14 12:26:24 -07:00

45 lines
1.5 KiB
YAML

name: asset_transformation
description: "A new Flutter project."
publish_to: 'none'
version: 0.1.0
resolution: workspace
environment:
sdk: ^3.9.0-0
dependencies:
flutter:
sdk: flutter
vector_graphics: ^1.1.11+1
dev_dependencies:
analysis_defaults:
path: ../analysis_defaults
flutter_test:
sdk: flutter
flutter_lints: ^6.0.0
vector_graphics_compiler: ^1.1.11+1
grayscale_transformer:
path: ./grayscale_transformer
flutter:
uses-material-design: true
assets:
# Here, we specify that assets/colorful.jpg should be transformed using
# the grayscale_transformer package. If you look at the dev_dependencies
# section, you'll notice that grayscale_transformer is a local path dependency
# and thus the full code of the package can be found right here in this project.
- path: assets/colorful.jpg
transformers:
- package: grayscale_transformer
# Here, we have an SVG image that we want to display in our app. Flutter
# cannot render SVG images itself, but there are packages that can.
# The vector_graphics package is one such app that can quickly render SVGs,
# but only after they have been run through the vector_graphics_compiler
# package first. Instead of having to do this manually ourselves, we
# can simply specify vector_graphics_compiler as a transformer on this asset.
- path: assets/svg.svg
transformers:
- package: vector_graphics_compiler
# Run the application using `flutter run` to see how these assets get rendered.