The Flutter code generator for your assets, fonts, colors, … — Get rid of all String-based APIs.
Inspired by SwiftGen .
Motivation
Using asset path string directly is not safe.
# pubspec.yaml
flutter:
assets:
- assets/images/profile.jpg
Bad What would happen if you made a typo?
Widget build(BuildContext context) {
return Image.asset('assets/images/profile.jpeg');
}
// The following assertion was thrown resolving an image codec:
// Unable to load asset: assets/images/profile.jpeg
Good We want to use it safely.
Widget build(BuildContext context) {
return Assets.images.profile.image();
}
Installation
Homebrew
Works with MacOS and Linux.
$ brew install FlutterGen/tap/fluttergen
Pub Global
Works with MacOS, Linux and Windows.
$ dart pub global activate flutter_gen
You might need to set up your path .
As a part of build_runner
Add build_runner and FlutterGen to your package’s pubspec.yaml file:
dev_dependencies:
build_runner:
flutter_gen_runner:
Install FlutterGen
$ flutter pub get
Use FlutterGen
$ flutter packages pub run build_runner build
Usage
Run fluttergen after the configuration pubspec.yaml .
$ fluttergen -h
$ fluttergen -c example/pubspec.yaml
Configuration file
FlutterGen generates dart files based on the key flutter and flutter_gen of pubspec.yaml . Default configuration can be found here .
# pubspec.yaml
# ...
flutter_gen:
output: lib/gen/ # Optional (default: lib/gen/)
line_length: 80 # Optional (default: 80)
# Optional
integrations:
flutter_svg: true
flare_flutter: true
colors:
inputs:
- assets/color/colors.xml
flutter:
uses-material-design: true
assets:
- assets/images/
fonts:
- family: Raleway
fonts:
- asset: assets/fonts/Raleway-Regular.ttf
- asset: assets/fonts/Raleway-Italic.ttf
style: italic
Available Parsers
Assets
Just follow the doc Adding assets and images#Specifying assets to specify assets, then FlutterGen will generate related dart files. No other specific configuration is required.Ignore duplicated.
# pubspec.yaml
flutter:
assets:
- assets/images/
- assets/images/chip3/chip.jpg
- assets/images/chip4/chip.jpg
- assets/images/icons/paint.svg
- assets/json/fruits.json
- assets/flare/Penguin.flr
- pictures/ocean_view.jpg
These configurations will generate assets.gen.dart under the lib/gen/ directory by default.
Usage Example
FlutterGen generates Image class if the asset is Flutter supported image format.
Example results of assets/images/chip.jpg:
Assets.images.chip is an implementation of AssetImage class .Assets.images.chip.image(...) returns Image class .Assets.images.chip.path just returns the path string.
Widget build(BuildContext context) {
return Image(image: Assets.images.chip);
}
Widget build(BuildContext context) {
return Assets.images.chip.image(
width: 120,
height: 120,
fit: BoxFit.scaleDown,
);
Widget build(BuildContext context) {
// Assets.images.chip.path = 'assets/images/chip3/chip3.jpg'
return Image.asset(Assets.images.chip.path);
}
If you are using SVG images with flutter_svg you can use the integration feature.
# pubspec.yaml
flutter_gen:
integrations:
flutter_svg: true
flutter:
assets:
- assets/images/icons/paint.svg
Widget build(BuildContext context) {
return Assets.images.icons.paint.svg(
width: 120,
height: 120
);
}
Available Integrations
Packages File extension Setting Usage flutter_svg .svg flutter_svg: trueAssets.images.icons.paint.svg() flare_flutter .flr flare_flutter: trueAssets.flare.penguin.flare()
In other cases, the asset is generated as String class.
// If don't use the Integrations.
final svg = SvgPicture.asset(Assets.images.icons.paint);
final json = await rootBundle.loadString(Assets.json.fruits);
FlutterGen also support generating other style of Assets class:
# pubspec.yaml
flutter_gen:
assets:
# Assets.imagesChip
# style: camel-case
# Assets.images_chip
# style: snake-case
# Assets.images.chip (default style)
# style: dot-delimiter
flutter:
assets:
- assets/images/chip.png
The root directory will be omitted if it is either assets or asset .
assets/images/chip3/chip.jpg => Assets.images.chip3.chip
assets/images/chip4/chip.jpg => Assets.images.chip4.chip
assets/images/icons/paint.svg => Assets.images.icons.paint
assets/json/fruits.json => Assets.json.fruits
pictures/ocean_view.jpg => Assets.pictures.oceanView
Example of code generated by FlutterGen
/// GENERATED CODE - DO NOT MODIFY BY HAND
/// *****************************************************
/// FlutterGen
/// *****************************************************
import 'package:flutter/widgets.dart';
import 'package:flutter_svg/flutter_svg.dart';
import 'package:flutter/services.dart';
import 'package:flare_flutter/flare_actor.dart';
import 'package:flare_flutter/flare_controller.dart';
class $PicturesGen {
const $PicturesGen();
AssetGenImage get chip5 => const AssetGenImage('pictures/chip5.jpg');
}
class $AssetsFlareGen {
const $AssetsFlareGen();
FlareGenImage get penguin => const FlareGenImage('assets/flare/Penguin.flr');
}
class $AssetsImagesGen {
const $AssetsImagesGen();
AssetGenImage get chip1 => const AssetGenImage('assets/images/chip1.jpg');
AssetGenImage get chip2 => const AssetGenImage('assets/images/chip2.jpg');
$AssetsImagesChip3Gen get chip3 => const $AssetsImagesChip3Gen();
$AssetsImagesChip4Gen get chip4 => const $AssetsImagesChip4Gen();
$AssetsImagesIconsGen get icons => const $AssetsImagesIconsGen();
AssetGenImage get logo => const AssetGenImage('assets/images/logo.png');
AssetGenImage get profile => const AssetGenImage('assets/images/profile.jpg');
}
class $AssetsJsonGen {
const $AssetsJsonGen();
String get fruits => 'assets/json/fruits.json';
}
class $AssetsMovieGen {
const $AssetsMovieGen();
String get theEarth => 'assets/movie/the_earth.mp4';
}
class $AssetsUnknownGen {
const $AssetsUnknownGen();
String get unknownMimeType => 'assets/unknown/unknown_mime_type.bk';
}
class $AssetsImagesChip3Gen {
const $AssetsImagesChip3Gen();
AssetGenImage get chip3 =>
const AssetGenImage('assets/images/chip3/chip3.jpg');
}
class $AssetsImagesChip4Gen {
const $AssetsImagesChip4Gen();
AssetGenImage get chip4 =>
const AssetGenImage('assets/images/chip4/chip4.jpg');
}
class $AssetsImagesIconsGen {
const $AssetsImagesIconsGen();
SvgGenImage get fuchsia =>
const SvgGenImage('assets/images/icons/fuchsia.svg');
SvgGenImage get kmm => const SvgGenImage('assets/images/icons/kmm.svg');
SvgGenImage get paint => const SvgGenImage('assets/images/icons/paint.svg');
}
class Assets {
Assets._();
static const $AssetsFlareGen flare = $AssetsFlareGen();
static const $AssetsImagesGen images = $AssetsImagesGen();
static const $AssetsJsonGen json = $AssetsJsonGen();
static const $AssetsMovieGen movie = $AssetsMovieGen();
static const $AssetsUnknownGen unknown = $AssetsUnknownGen();
static const $PicturesGen pictures = $PicturesGen();
}
class AssetGenImage extends AssetImage {
const AssetGenImage(String assetName)
: _assetName = assetName,
super(assetName);
final String _assetName;
Image image({
Key key,
ImageFrameBuilder frameBuilder,
ImageLoadingBuilder loadingBuilder,
ImageErrorWidgetBuilder errorBuilder,
String semanticLabel,
bool excludeFromSemantics = false,
double width,
double height,
Color color,
BlendMode colorBlendMode,
BoxFit fit,
AlignmentGeometry alignment = Alignment.center,
ImageRepeat repeat = ImageRepeat.noRepeat,
Rect centerSlice,
bool matchTextDirection = false,
bool gaplessPlayback = false,
bool isAntiAlias = false,
FilterQuality filterQuality = FilterQuality.low,
}) {
return Image(
key: key,
image: this,
frameBuilder: frameBuilder,
loadingBuilder: loadingBuilder,
errorBuilder: errorBuilder,
semanticLabel: semanticLabel,
excludeFromSemantics: excludeFromSemantics,
width: width,
height: height,
color: color,
colorBlendMode: colorBlendMode,
fit: fit,
alignment: alignment,
repeat: repeat,
centerSlice: centerSlice,
matchTextDirection: matchTextDirection,
gaplessPlayback: gaplessPlayback,
isAntiAlias: isAntiAlias,
filterQuality: filterQuality,
);
}
String get path => _assetName;
}
class SvgGenImage {
const SvgGenImage(this._assetName);
final String _assetName;
SvgPicture svg({
Key key,
bool matchTextDirection = false,
AssetBundle bundle,
String package,
double width,
double height,
BoxFit fit = BoxFit.contain,
AlignmentGeometry alignment = Alignment.center,
bool allowDrawingOutsideViewBox = false,
WidgetBuilder placeholderBuilder,
Color color,
BlendMode colorBlendMode = BlendMode.srcIn,
String semanticsLabel,
bool excludeFromSemantics = false,
Clip clipBehavior = Clip.hardEdge,
}) {
return SvgPicture.asset(
_assetName,
key: key,
matchTextDirection: matchTextDirection,
bundle: bundle,
package: package,
width: width,
height: height,
fit: fit,
alignment: alignment,
allowDrawingOutsideViewBox: allowDrawingOutsideViewBox,
placeholderBuilder: placeholderBuilder,
color: color,
colorBlendMode: colorBlendMode,
semanticsLabel: semanticsLabel,
excludeFromSemantics: excludeFromSemantics,
clipBehavior: clipBehavior,
);
}
String get path => _assetName;
}
class FlareGenImage {
const FlareGenImage(this._assetName);
final String _assetName;
FlareActor flare({
String boundsNode,
String animation,
BoxFit fit = BoxFit.contain,
Alignment alignment = Alignment.center,
bool isPaused = false,
bool snapToEnd = false,
FlareController controller,
FlareCompletedCallback callback,
Color color,
bool shouldClip = true,
bool sizeFromArtboard = false,
String artboard,
bool antialias = true,
}) {
return FlareActor(
_assetName,
boundsNode: boundsNode,
animation: animation,
fit: fit,
alignment: alignment,
isPaused: isPaused,
snapToEnd: snapToEnd,
controller: controller,
callback: callback,
color: color,
shouldClip: shouldClip,
sizeFromArtboard: sizeFromArtboard,
artboard: artboard,
antialias: antialias,
);
}
String get path => _assetName;
}
Fonts
Just follow the doc Use a custom font to specify fonts, then FlutterGen will generate related dart files. No other specific configuration is required.Ignore duplicated.
# pubspec.yaml
flutter:
fonts:
- family: Raleway
fonts:
- asset: assets/fonts/Raleway-Regular.ttf
- asset: assets/fonts/Raleway-Italic.ttf
style: italic
- family: RobotoMono
fonts:
- asset: assets/fonts/RobotoMono-Regular.ttf
- asset: assets/fonts/RobotoMono-Bold.ttf
weight: 700
These configurations will generate fonts.gen.dart under the lib/gen/ directory by default.
Usage Example
Text(
'Hi there, I\'m FlutterGen',
style: TextStyle(
fontFamily: FontFamily.robotoMono,
fontFamilyFallback: const [FontFamily.raleway],
),
Example of code generated by FlutterGen
/// GENERATED CODE - DO NOT MODIFY BY HAND
/// *****************************************************
/// FlutterGen
/// *****************************************************
class FontFamily {
FontFamily._();
static const String raleway = 'Raleway';
static const String robotoMono = 'RobotoMono';
}
Colors
FlutterGen supports generating colors from XML format files.Ignore duplicated.
# pubspec.yaml
flutter_gen:
colors:
inputs:
- assets/color/colors.xml
- assets/color/colors2.xml
FlutterGen can generate a Color class based on the name attribute and the color hex value. If the element has the attribute type, then a specially color will be generated.
Currently supported special color types:
Noticed that there is no official material color generation algorithm. The implementation is based on the mcg project.
<color name="milk_tea">#F5CB84</color>
<color name="cinnamon" type="material">#955E1C</color>
<color name="yellow_ocher" type="material material-accent">#DF9527</color>
These configurations will generate colors.gen.dart under the lib/gen/ directory by default.
Usage Example
Text(
'Hi there, I\'m FlutterGen',
style: TextStyle(
color: ColorName.denim,
),
Example of code generated by FlutterGen
/// GENERATED CODE - DO NOT MODIFY BY HAND
/// *****************************************************
/// FlutterGen
/// *****************************************************
import 'package:flutter/painting.dart';
import 'package:flutter/material.dart';
class ColorName {
ColorName._();
static const Color black = Color(0xFF000000);
static const Color black30 = Color(0x4D000000);
static const Color black40 = Color(0x66000000);
static const Color black50 = Color(0x80000000);
static const Color black60 = Color(0x99000000);
static const MaterialColor crimsonRed = MaterialColor(
0xFFCF2A2A,
<int, Color>{
50: Color(0xFFF9E5E5),
100: Color(0xFFF1BFBF),
200: Color(0xFFE79595),
300: Color(0xFFDD6A6A),
400: Color(0xFFD64A4A),
500: Color(0xFFCF2A2A),
600: Color(0xFFCA2525),
700: Color(0xFFC31F1F),
800: Color(0xFFBD1919),
900: Color(0xFFB20F0F),
},
);
static const Color gray410 = Color(0xFF979797);
static const Color gray70 = Color(0xFFEEEEEE);
static const Color white = Color(0xFFFFFFFF);
static const MaterialColor yellowOcher = MaterialColor(
0xFFDF9527,
<int, Color>{
50: Color(0xFFFBF2E5),
100: Color(0xFFF5DFBE),
200: Color(0xFFEFCA93),
300: Color(0xFFE9B568),
400: Color(0xFFE4A547),
500: Color(0xFFDF9527),
600: Color(0xFFDB8D23),
700: Color(0xFFD7821D),
800: Color(0xFFD27817),
900: Color(0xFFCA670E),
},
);
static const MaterialAccentColor yellowOcherAccent = MaterialAccentColor(
0xFFFFBCA3,
<int, Color>{
100: Color(0xFFFFE8E0),
200: Color(0xFFFFBCA3),
400: Color(0xFFFFA989),
700: Color(0xFFFF9E7A),
},
);
}
Default Configuration
The following are the default settings. The options you set in pubspec.yaml will override the corresponding default options.
flutter_gen:
output: lib/gen/
line_length: 80
null_safety: true
integrations:
flutter_svg: false
flare_flutter: false
assets:
enabled: true
package_parameter_enabled: false
style: dot-delimiter
fonts:
enabled: true
colors:
enabled: true
inputs: []
flutter:
assets: []
fonts: []
Credits
The material color generation implementation is based on mcg and TinyColor .
Issues
Please file FlutterGen specific issues, bugs, or feature requests in our issue tracker .
Plugin issues that are not specific to FlutterGen can be filed in the Flutter issue tracker .
Contributing
We are looking for co-developers.
If you wish to contribute a change to any of the existing plugins in this repo, please review our contribution guide and open a pull request .
Download Flutter code generator source code on GitHub
The Flutter code generator for your assets, fonts, colors, … — Get rid of all String-based APIs. https://github.com/FlutterGen/flutter_gen 184 forks. 1,585 stars. 36 open issues. Recent commits: 🔖 5.15.1 (#800) , GitHub fix: ignore unrelated build.yaml files during CLI discovery (#795)## What does this change?The CLI currently passes every discovered package-local `build.yaml` asan explicit build file. If it configures only another builder,FlutterGen generates the requested assets and exits successfully butlogs `SEVERE: … does not contain valid options`. This also happens forworkspace members.Let the core configuration loader handle implicit discovery and lookbeside the selected pubspec. It only uses a discovered file when itcontains FlutterGen options. Explicit `–build` inputs keep theirexisting diagnostics and precedence, and valid package-local optionsstill work when `–config` points outside the working directory.Related to #702. The current build_runner implementation alreadyconsumes `BuilderOptions` directly; I reproduced and fixed the remainingCLI path on current main.## Type of change- [x] Bug fix (non-breaking change which fixes an issue)## ValidationOn macOS arm64, Flutter 3.44.2 / Dart 3.12.2:- `dart run melos test`: **106 passed** across the command, core, runnerand Flutter example suites. Unmodified baseline: 102 passed.- `dart run melos test:xml-matrix`: **90 passed with xml 6.x and 90 withxml 7.x**.- `dart run melos analyze`: all six packages passed.- Repository Dart format check and `git diff –check`: passed.- Generated test goldens and examples through the CLI and build_runner,including workspace mode: no tracked output differences.Before the production change, the two CLI regressions emitted SEVERE andthe new package-local core discovery regression selected the wrongoutput directory. After the change they pass. The existing fallback testnow writes its fixture beside the pubspec and verifies a freshlygenerated output path; it also fails on the original core source. Acontrol verifies that an explicitly selected build file without optionsstill reports SEVERE.Windows/Linux CI and native application builds were not run locally. Thefull host test suite, including the existing build_runner workspaceintegration tests and Flutter widget tests, was run without adding skipsor changing timeouts.## Checklist- [x] Existing issue identified before implementation (#702).- [x] Full `melos test` completed.- [x] Analyzer and formatter checks completed.- [x] Reviewed the final diff; no new public option or unrelatedgenerated changes are included.- Documentation update is not required: this preserves the existing CLIdiscovery behavior while removing the false diagnostic.AI assistance: this patch and its tests were developed and reviewed withOpenAI Codex. The validation results above were run locally; upstreamreview and CI remain pending.Co-authored-by: Alex Li <github@alexv525.com> , GitHub upgrade: update dependency flutter to v3.50.0 (#791)This PR contains the following updates:| Package | Update | Change | Pending ||—|—|—|—|| [flutter](https://flutter.dev)([source](https://redirect.github.com/flutter/flutter)) | minor |`3.44.4` → `3.50.0` | `3.50.1` |—### Release Notes<details><summary>flutter/flutter (flutter)</summary>###[`v3.50.0`](https://redirect.github.com/flutter/flutter/blob/HEAD/CHANGELOG.md#3500)[CompareSource](https://redirect.github.com/flutter/flutter/compare/3.47.9…3.50.0)Learn about what's new in this release in [the blogpost](https://flutter.dev/blog/whats-new-in-flutter-3-50), and check outthe[CHANGELOG](https://docs.flutter.dev/release/release-notes/release-notes-3.50.0)for a detailed list of all the new changes.###[`v3.47.9`](https://redirect.github.com/flutter/flutter/blob/HEAD/CHANGELOG.md#3479)[CompareSource](https://redirect.github.com/flutter/flutter/compare/3.47.8…3.47.9)-[flutter/194570](https://redirect.github.com/flutter/flutter/issues/194570)When a path or command exceeds `MAX_PATH` on Windows (OS Error 206),`flutter_tools` crashed with an unhandled `ProcessPackageException` or`FileSystemException` instead of exiting cleanly with an actionableerror message.-[flutter/192933](https://redirect.github.com/flutter/flutter/issues/192933)When running `flutter test` in pub workspaces, monorepos, or symlinkeddirectories on any platform, native assets compilation crashed with a`StateError`.-[flutter/193527](https://redirect.github.com/flutter/flutter/issues/193527)When building custom text selection menus, packages can't add newactions such as Translate without breaking exhaustive switches on`ContextMenuButtonType`; adds the extensible `ContextMenuButtonKind`.###[`v3.47.8`](https://redirect.github.com/flutter/flutter/blob/HEAD/CHANGELOG.md#3478)[CompareSource](https://redirect.github.com/flutter/flutter/compare/3.47.7…3.47.8)##### Security advisory[GHSA-frr6-h895-5pxp](https://redirect.github.com/dart-lang/sdk/security/advisories/GHSA-frr6-h895-5pxp):###[`v3.47.7`](https://redirect.github.com/flutter/flutter/blob/HEAD/CHANGELOG.md#3477)[CompareSource](https://redirect.github.com/flutter/flutter/compare/3.47.6…3.47.7)-[flutter/182604](https://redirect.github.com/flutter/flutter/issues/182604)When an OverlayPortal is displayed on iOS, accessibility frames areshrunk by the device pixel ratio and anchored to the top-left, soVoiceOver focus and XCUITest taps miss the visible controls.-[flutter/100946](https://redirect.github.com/flutter/flutter/issues/100946)When using VoiceOver on iOS with a ReorderableListView, Semantics focusis incorrectly shifted to the top left of the screen.###[`v3.47.6`](https://redirect.github.com/flutter/flutter/blob/HEAD/CHANGELOG.md#3476)[CompareSource](https://redirect.github.com/flutter/flutter/compare/3.47.5…3.47.6)-[flutter/192513](https://redirect.github.com/flutter/flutter/issues/192513)Fixed an issue that caused Windows production apps to hang.###[`v3.47.5`](https://redirect.github.com/flutter/flutter/blob/HEAD/CHANGELOG.md#3475)[CompareSource](https://redirect.github.com/flutter/flutter/compare/3.47.4…3.47.5)-[flutter/190307](https://redirect.github.com/flutter/flutter/issues/190307)When debugging on physical iOS 27 devices, app occasionally crashes.-[flutter/191242](https://redirect.github.com/flutter/flutter/issues/191242)When re-expanding a preview group in the Widget Previewer, previewscrash due to a type error in scroll restoration.-[flutter/189507](https://redirect.github.com/flutter/flutter/pull/189507)When Dart Development Service encounters a startup failure,flutter_tools crashes with an unhandled FormatException.###[`v3.47.4`](https://redirect.github.com/flutter/flutter/blob/HEAD/CHANGELOG.md#3474)[CompareSource](https://redirect.github.com/flutter/flutter/compare/3.47.3…3.47.4)-[flutter/191899](https://redirect.github.com/flutter/flutter/issues/191899)When Windows Smart App Control or security policies block binaryexecution on Windows, gracefully handle the error with an actionablemessage instead of crashing.-[flutter/192120](https://redirect.github.com/flutter/flutter/pull/192120)Fixes missing preview reload timing analytics in LspPreviewDetectoracross all platforms.-[flutter/181560](https://redirect.github.com/flutter/flutter/issues/181560)When building iOS and macOS app, SwiftPM migration warnings and errorsare not tracked in analytics.-[flutter/191964](https://redirect.github.com/flutter/flutter/pull/191964)On iOS, apps bundling native assets fail App Store submission whennative libraries are compiled with deployment targets above iOS 13.-[flutter/189284](https://redirect.github.com/flutter/flutter/issues/189284)When debugging with Xcode 27, the app may launch to a white screen andhang for multiple minutes.-[flutter/190465](https://redirect.github.com/flutter/flutter/issues/190465)When running WebAssembly dry-run builds on Web, remove redundantexperiment flag warning that dropped telemetry error findings.-[flutter/191898](https://redirect.github.com/flutter/flutter/issues/191898)When remote test processes emit plain-text error output on allplatforms, prevent flutter_tools from crashing with an unhandledFormatException.###[`v3.47.3`](https://redirect.github.com/flutter/flutter/blob/HEAD/CHANGELOG.md#3473)[CompareSource](https://redirect.github.com/flutter/flutter/compare/3.47.2…3.47.3)-[flutter/191045](https://redirect.github.com/flutter/flutter/issues/191045)When calling Actions.handler on all platforms, null was always returned.-[flutter/181315](https://redirect.github.com/flutter/flutter/issues/181315)When using Impeller on Android devices with B-Series PowerVR GPUs,visual oddities and performance drops can be experienced.-[flutter/191176](https://redirect.github.com/flutter/flutter/issues/191176)When building for macOS or iOS on machines with missing or incompleteXcode installations, flutter_tools displays an actionable error messageinstead of crashing with an unhandled ProcessException.-[flutter/191487](https://redirect.github.com/flutter/flutter/issues/191487)When using Android SDK Command-line Tools 23.0+ for Android, flutterdoctor incorrectly reports "Android license status unknown".###[`v3.47.2`](https://redirect.github.com/flutter/flutter/blob/HEAD/CHANGELOG.md#3472)[CompareSource](https://redirect.github.com/flutter/flutter/compare/3.47.1…3.47.2)-[flutter/191179](https://redirect.github.com/flutter/flutter/issues/191179)When WebSocket upgrade fails during DDS startup on web, handle the`DartDevelopmentServiceException` gracefully instead of crashing.-[flutter/190518](https://redirect.github.com/flutter/flutter/pull/190518)Fix memory leak caused by processing touch events on Linux.-[flutter/188265](https://redirect.github.com/flutter/flutter/issues/188265)iOS or macOS builds may fail when Swift Package Manager is enabled.-[flutter/190846](https://redirect.github.com/flutter/flutter/issues/190846)When building an existing native iOS app that's integrated with Flutterusing SwiftPM on Xcode 27, it may fail to build Flutter's Swiftpackages.-[flutter/187925](https://redirect.github.com/flutter/flutter/issues/187925)On Linux, fix header elements not being announced by screen reader.-[flutter/190774](https://redirect.github.com/flutter/flutter/issues/190774)When using external textures on Windows, a crash could occur when theengine paints them.-[flutter/191177](https://redirect.github.com/flutter/flutter/issues/191177)The Flutter tool crashes if a configured custom device ping times out.-[flutter/190987](https://redirect.github.com/flutter/flutter/issues/190987)Updates `libpng` to fix security vulnerability.-[flutter/191060](https://redirect.github.com/flutter/flutter/issues/191060)When `analysis_options.yaml` contains flow-style `exclude:` sequences,`AnalysisOptionsMigration` converts the node to block style beforeappending to avoid `YamlEditor` assertion crashes.-[flutter/191131](https://redirect.github.com/flutter/flutter/issues/191131)Only exclude platform directories that actually exist from analysis, soweb/** sources in Dart web packages are no longer silently dropped.-[flutter/191198](https://redirect.github.com/flutter/flutter/issues/191198)On Windows, truncate `lastCompiled` timestamp to whole seconds in`ProjectFileInvalidator` so rapid consecutive file modifications withinthe same second are not silently ignored by hot reload.-[flutter/152236](https://redirect.github.com/flutter/flutter/issues/152236)On desktop platforms, forward `–build-name` and `–build-number` flagsto the desktop build pipeline so generated `version.json` reflectscommand-line build version parameters.-[flutter/191205](https://redirect.github.com/flutter/flutter/issues/191205)Prevent `StateError: Bad state: Future already completed in Symbolizer`during stack symbolization.-[flutter/191178](https://redirect.github.com/flutter/flutter/issues/191178)Handle `HttpException` during VM service connection retries and ensuretyped exceptions are passed to error completers.###[`v3.47.1`](https://redirect.github.com/flutter/flutter/blob/HEAD/CHANGELOG.md#3471)[CompareSource](https://redirect.github.com/flutter/flutter/compare/3.47.0…3.47.1)-[flutter/190871](https://redirect.github.com/flutter/flutter/issues/190871)Flutter GPU could not be enabled in release builds on Linux and Windows,since those embedders had no project-level opt-in and release buildsignore engine switches from the environment.-[flutter/188446](https://redirect.github.com/flutter/flutter/issues/188446)When building multi-target applications in parallel on iOS and macOS, arace condition in SwiftPM integration causes `FileSystemException`.-[flutter/189550](https://redirect.github.com/flutter/flutter/issues/189550)When running `flutter pub get` in a Dart workspace, platform toolingregeneration and analysis options migration are skipped for packagesthat do not depend on Flutter.-[flutter/190234](https://redirect.github.com/flutter/flutter/issues/190234)Avoid crashing with `PathNotFoundException` when cleaning up nativeassets if files are removed concurrently.-[flutter/189128](https://redirect.github.com/flutter/flutter/issues/189128)Invalidate `WebEntrypointTarget` and regenerate`web_plugin_registrant.dart` when web plugins are added or removed.-[flutter/186445](https://redirect.github.com/flutter/flutter/issues/186445)Fix hot restart for WASM web builds.-[flutter/190284](https://redirect.github.com/flutter/flutter/issues/190284)Fix hot reload failing to reload edits in nested Pub workspace memberpackages located under root `lib/`.-[flutter/191056](https://redirect.github.com/flutter/flutter/issues/191056)Recursively resolve includes in `AnalysisOptionsMigration` to preventredundant rewrites of `analysis_options.yaml`.-[flutter/189156](https://redirect.github.com/flutter/flutter/issues/189156)Validate plugin class and package identifiers to prevent arbitrary codeinjection into `GeneratedPluginRegistrant`.-[flutter/190721](https://redirect.github.com/flutter/flutter/issues/190721)Fix deadlock in debug adapters when the target process exits earlyduring startup before VM service connection.-[flutter/189972](https://redirect.github.com/flutter/flutter/issues/189972)Fix ADB device list parsing for long wireless mDNS serials separatedfrom state by a single space.-[flutter/190233](https://redirect.github.com/flutter/flutter/issues/190233)Fix `impellerc` crash on Windows when paths contain Unicode characters,and improve shader compiler error diagnostics.###[`v3.47.0`](https://redirect.github.com/flutter/flutter/blob/HEAD/CHANGELOG.md#3470)[CompareSource](https://redirect.github.com/flutter/flutter/compare/3.44.9…3.47.0)Learn about what's new in this release in [the blogpost](https://flutter.dev/blog/whats-new-in-flutter-3-47), and check outthe[CHANGELOG](https://docs.flutter.dev/release/release-notes/release-notes-3.47.0)for a detailed list of all the new changes.###[`v3.44.9`](https://redirect.github.com/flutter/flutter/blob/HEAD/CHANGELOG.md#3449)[CompareSource](https://redirect.github.com/flutter/flutter/compare/3.44.8…3.44.9)-[flutter/186366](https://redirect.github.com/flutter/flutter/issues/186366)When debugging an iOS app, if the app crashes, the Flutter CLI and teststhat crash will hang.###[`v3.44.8`](https://redirect.github.com/flutter/flutter/blob/HEAD/CHANGELOG.md#3448)[CompareSource](https://redirect.github.com/flutter/flutter/compare/3.44.7…3.44.8)-[flutter/188346](https://redirect.github.com/flutter/flutter/issues/188346)When building on macOS or iOS using the Xcode 27 toolchain, the buildwill fail due to a lipo verification error.-[flutter/184286](https://redirect.github.com/flutter/flutter/issues/184286)On some devices with vendor-modified Android 11 ROMs,`AccessibilityBridge.java` field fails to resolve.###[`v3.44.7`](https://redirect.github.com/flutter/flutter/blob/HEAD/CHANGELOG.md#3447)[CompareSource](https://redirect.github.com/flutter/flutter/compare/3.44.6…3.44.7)-[flutter/188161](https://redirect.github.com/flutter/flutter/issues/188161)Fixes a resource leak that sometimes caused crashes when using externaltextures on some GPUs (such as Arm Mali).###[`v3.44.6`](https://redirect.github.com/flutter/flutter/blob/HEAD/CHANGELOG.md#3446)[CompareSource](https://redirect.github.com/flutter/flutter/compare/3.44.5…3.44.6)-[flutter/187980](https://redirect.github.com/flutter/flutter/issues/187980)On Linux, building asset bundles with native assets enabled without anative app build directory crashes due to missing `CMakeCache.txt`.-[flutter/188805](https://redirect.github.com/flutter/flutter/issues/188805)Fixes a crash when running Android instrumented tests.###[`v3.44.5`](https://redirect.github.com/flutter/flutter/blob/HEAD/CHANGELOG.md#3445)[CompareSource](https://redirect.github.com/flutter/flutter/compare/3.44.4…3.44.5)-[flutter/188718](https://redirect.github.com/flutter/flutter/issues/188718)When building Flutter Android apps and add-to-app modules using AGP < 9with KGP, the tool incorrectly logs Built-in Kotlin migration warnings.-[flutter/186810](https://redirect.github.com/flutter/flutter/issues/186810)[flutter/187388](https://redirect.github.com/flutter/flutter/issues/187388)[flutter/187553](https://redirect.github.com/flutter/flutter/issues/187553)When building Android app bundles using flavors, or with an old apptemplate combined with a plugin coming alphabetically before app, fixesproblems with failing to include libapp.so in the produced app bundle.-[flutter/188035](https://redirect.github.com/flutter/flutter/issues/188035)When rendering text with shadows, the shadows would appear elsewhere onthe screen, separate from the text.-[flutter/187237](https://redirect.github.com/flutter/flutter/issues/187237)Fixes a crash that can happen during app shutdown or rotation on someAndroid devices using Impeller/Vulkan with HCPP.</details>—### Configuration📅 **Schedule**: (in timezone Asia/Tokyo)- Branch creation – Only on Wednesday (`* * * * 3`)- Automerge – At any time (no schedule defined)🚦 **Automerge**: Disabled by config. Please merge this manually once youare satisfied.♻ **Rebasing**: Whenever PR becomes conflicted, or you tick therebase/retry checkbox.🔕 **Ignore**: Close this PR and you won't be reminded about this updateagain.—- [ ] <!– rebase-check –>If you want to rebase/retry this PR, checkthis box—This PR was generated by [Mend Renovate](https://mend.io/renovate/).View the [repository joblog](https://developer.mend.io/github/FlutterGen/flutter_gen).<!–renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4yMDQuMCIsInVwZGF0ZWRJblZlciI6IjQ1LjEyLjAiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbXX0=–>———Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>Co-authored-by: Alex Li <github@alexv525.com> , GitHub upgrade: update dependency prettier-plugin-packagejson to v3.1.0 (#797)This PR contains the following updates:| Package | Change |[Age](https://docs.renovatebot.com/merge-confidence/) |[Confidence](https://docs.renovatebot.com/merge-confidence/) ||—|—|—|—||[prettier-plugin-packagejson](https://redirect.github.com/matzkoh/prettier-plugin-packagejson)| [`3.0.0` →`3.1.0`](https://renovatebot.com/diffs/npm/prettier-plugin-packagejson/3.0.0/3.1.0)|||—### Release Notes<details><summary>matzkoh/prettier-plugin-packagejson(prettier-plugin-packagejson)</summary>###[`v3.1.0`](https://redirect.github.com/matzkoh/prettier-plugin-packagejson/releases/tag/v3.1.0)[CompareSource](https://redirect.github.com/matzkoh/prettier-plugin-packagejson/compare/v3.0.3…v3.1.0)##### Features- declare supported Node.js range in engines([47915a8](https://redirect.github.com/matzkoh/prettier-plugin-packagejson/commit/47915a843b6c35588e689e1b308cd61d12d5ff57))###[`v3.0.3`](https://redirect.github.com/matzkoh/prettier-plugin-packagejson/releases/tag/v3.0.3)[CompareSource](https://redirect.github.com/matzkoh/prettier-plugin-packagejson/compare/v3.0.2…v3.0.3)##### Bug Fixes- **deps:** update dependency sort-package-json to v4([cb2ac26](https://redirect.github.com/matzkoh/prettier-plugin-packagejson/commit/cb2ac26bf174d3eb9b687f095f6970a1fd835472))###[`v3.0.2`](https://redirect.github.com/matzkoh/prettier-plugin-packagejson/releases/tag/v3.0.2)[CompareSource](https://redirect.github.com/matzkoh/prettier-plugin-packagejson/compare/v3.0.1…v3.0.2)##### Bug Fixes- **deps:** restore caret ranges for dependencies([9c999e5](https://redirect.github.com/matzkoh/prettier-plugin-packagejson/commit/9c999e57685a4f35b0ea1264e4a2aee385e5c356))###[`v3.0.1`](https://redirect.github.com/matzkoh/prettier-plugin-packagejson/releases/tag/v3.0.1)[CompareSource](https://redirect.github.com/matzkoh/prettier-plugin-packagejson/compare/v3.0.0…v3.0.1)##### Bug Fixes- **deps:** pin dependencies([9508641](https://redirect.github.com/matzkoh/prettier-plugin-packagejson/commit/9508641271cfd0dcc2b9cbadebd1a7ae905c8640))</details>—### Configuration📅 **Schedule**: (in timezone Asia/Tokyo)- Branch creation – Only on Wednesday (`* * * * 3`)- Automerge – At any time (no schedule defined)🚦 **Automerge**: Disabled by config. Please merge this manually once youare satisfied.♻ **Rebasing**: Whenever PR is behind base branch, or you tick therebase/retry checkbox.🔕 **Ignore**: Close this PR and you won't be reminded about this updateagain.—- [ ] <!– rebase-check –>If you want to rebase/retry this PR, checkthis box—This PR was generated by [Mend Renovate](https://mend.io/renovate/).View the [repository joblog](https://developer.mend.io/github/FlutterGen/flutter_gen).<!–renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4yNDkuMSIsInVwZGF0ZWRJblZlciI6IjQ1LjEyLjAiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbXX0=–>Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> , GitHub upgrade: update dependency prettier to v3.10.1 (#798)This PR contains the following updates:| Package | Change |[Age](https://docs.renovatebot.com/merge-confidence/) |[Confidence](https://docs.renovatebot.com/merge-confidence/) ||—|—|—|—|| [prettier](https://prettier.io)([source](https://redirect.github.com/prettier/prettier)) | [`3.9.6` →`3.10.1`](https://renovatebot.com/diffs/npm/prettier/3.9.6/3.10.1) |||—### Release Notes<details><summary>prettier/prettier (prettier)</summary>###[`v3.10.1`](https://redirect.github.com/prettier/prettier/blob/HEAD/CHANGELOG.md#3101)[CompareSource](https://redirect.github.com/prettier/prettier/compare/3.10.0…3.10.1)[diff](https://redirect.github.com/prettier/prettier/compare/3.10.0…3.10.1)##### GraphQL: Fix empty selection set with comments([#20504](https://redirect.github.com/prettier/prettier/pull/20504)by [@fisker](https://redirect.github.com/fisker))<!– prettier-ignore –>“`gql# Inputfragment F on Query { # x}# Prettier 3.10.0Error: Comment "x" was not printed. Please report this error!# Prettier 3.10.1fragment F on Query { # x}“`###[`v3.10.0`](https://redirect.github.com/prettier/prettier/blob/HEAD/CHANGELOG.md#3100)[CompareSource](https://redirect.github.com/prettier/prettier/compare/3.9.10…3.10.0)[diff](https://redirect.github.com/prettier/prettier/compare/3.9.10…3.10.0)🔗 [Release Notes](https://prettier.io/blog/2026/11/11/3.10.0)###[`v3.9.10`](https://redirect.github.com/prettier/prettier/blob/HEAD/CHANGELOG.md#3910)[CompareSource](https://redirect.github.com/prettier/prettier/compare/3.9.9…3.9.10)[diff](https://redirect.github.com/prettier/prettier/compare/3.9.9…3.9.10)##### Markdown: Update `micromark-extension-gfm-table` to fix the tableparse issue on performance([#20266](https://redirect.github.com/prettier/prettier/pull/20266)by [@fisker](https://redirect.github.com/fisker))See[micromark/micromark-extension-gfm-table@`4f43ead`](https://redirect.github.com/micromark/micromark-extension-gfm-table/commit/4f43ead37b786bc531d924530d4ab4c714886267)for details.###[`v3.9.9`](https://redirect.github.com/prettier/prettier/blob/HEAD/CHANGELOG.md#399)[CompareSource](https://redirect.github.com/prettier/prettier/compare/3.9.8…3.9.9)[diff](https://redirect.github.com/prettier/prettier/compare/3.9.8…3.9.9)##### Markdown: Fix text with `$` been incorrectly parsed as math syntax([#20140](https://redirect.github.com/prettier/prettier/pull/20140)by [@fisker](https://redirect.github.com/fisker))<!– prettier-ignore –>“`md<!– Input –>**Uses $FOO** from `a.sh` and `b.sh`, plus `$BAR` from `c.sh`, before anything else runs here.<!– Prettier 3.9.8 –>**Uses $FOO** from `a.sh` and `b.sh`, plus `$BAR`from`c.sh`, before anything else runs here.<!– Prettier 3.9.9 –>**Uses $FOO** from `a.sh` and `b.sh`, plus `$BAR` from `c.sh`, before anything else runs here.“`###[`v3.9.8`](https://redirect.github.com/prettier/prettier/blob/HEAD/CHANGELOG.md#398)[CompareSource](https://redirect.github.com/prettier/prettier/compare/3.9.7…3.9.8)[diff](https://redirect.github.com/prettier/prettier/compare/3.9.7…3.9.8)##### Markdown: Don't let Liquid objects interrupt paragraphs([#20087](https://redirect.github.com/prettier/prettier/pull/20087)by [@seiyab](https://redirect.github.com/seiyab))<!– prettier-ignore –>“`markdown<!– Input –>If `module` is not a [`WebAssembly.Module`](/en-US/docs/WebAssembly/Reference/JavaScript_interface/Module) object instance, a{{jsxref("TypeError")}} is thrown.<!– Prettier 3.9.7 –>If `module` is not a [`WebAssembly.Module`](/en-US/docs/WebAssembly/Reference/JavaScript_interface/Module) object instance, a{{jsxref("TypeError")}} is thrown.<!– Prettier 3.9.8 –>If `module` is not a [`WebAssembly.Module`](/en-US/docs/WebAssembly/Reference/JavaScript_interface/Module) object instance, a{{jsxref("TypeError")}} is thrown.“`###[`v3.9.7`](https://redirect.github.com/prettier/prettier/blob/HEAD/CHANGELOG.md#397)[CompareSource](https://redirect.github.com/prettier/prettier/compare/3.9.6…3.9.7)[diff](https://redirect.github.com/prettier/prettier/compare/3.9.6…3.9.7)##### Markdown: Prevent indentation drift in list-item code blocks([#19647](https://redirect.github.com/prettier/prettier/pull/19647),[#19990](https://redirect.github.com/prettier/prettier/pull/19990)by [@Austin1serb](https://redirect.github.com/Austin1serb),[@giaBaoJS](https://redirect.github.com/giaBaoJS))<!– prettier-ignore –>“`markdown<!– Input –>- [x] short first line. second paragraph at six spaces that wraps onto another line here.<!– Prettier 3.9.6 –>- [x] short first line. second paragraph at six spaces that wraps onto another line here.<!– Prettier 3.9.7 –>- [x] short first line. second paragraph at six spaces that wraps onto another line here.“`##### JavaScript: Fix embedded template literal idempotency([#19725](https://redirect.github.com/prettier/prettier/pull/19725)by [@fisker](https://redirect.github.com/fisker))<!– prettier-ignore –>“`jsx// Inputconst foo = html` <div>${getText({ value, })}</div>`;// Prettier 3.9.6 (first format)const foo = html` <div> ${getText({ value, })} </div>`;// Prettier 3.9.6 (second format)const foo = html` <div> ${getText({ value, })} </div>`;// Prettier 3.9.7const foo = html` <div> ${getText({ value, })} </div>`;“`##### Markdown: Preserve Liquid blocks after Markdown tables([#19730](https://redirect.github.com/prettier/prettier/pull/19730)by [@wanxiankai](https://redirect.github.com/wanxiankai),[@seiyab](https://redirect.github.com/seiyab))<!– prettier-ignore –>“`markdown<!– Input –>| Argument | Type || ——– | —- |{% set default_params = { "model": ["str"],} %}<!– Prettier 3.9.6 –>| Argument | Type || ————————- | —- || {% set default_params = { | "model": ["str"],} %}<!– Prettier 3.9.7 –>| Argument | Type || ——– | —- |{% set default_params = { "model": ["str"],} %}“`##### Markdown: Preserve single tildes in Markdown([#19739](https://redirect.github.com/prettier/prettier/pull/19739)by [@lazerg](https://redirect.github.com/lazerg))Since 3.9.0, single-tilde spans like `H~2~O` were rewritten to doubletildes, turning subscript syntax into strike-through. Only double tildesare treated that way now, matching GitHub.<!– prettier-ignore –>“`markdown<!– Input –>H~2~O<!– Prettier 3.9.6 –>H~~2~~O<!– Prettier 3.9.7 –>H~2~O“`##### Markdown: Fix Markdown blockquote containing `>` characters([#19802](https://redirect.github.com/prettier/prettier/pull/19802)by [@seiyab](https://redirect.github.com/seiyab))<!– prettier-ignore –>“`md<!– Input –>> **test**><!– Prettier 3.9.6 –>> **test**>><!– Prettier 3.9.7 –>> **test**>“`##### Markdown: Strip blockquote markers from a setext heading'scontinuation lines([#19878](https://redirect.github.com/prettier/prettier/pull/19878)by [@Kjubikstronk](https://redirect.github.com/Kjubikstronk))A setext heading spanning multiple lines inside a blockquote kept the`>` marker of its continuation lines as literal text.<!– prettier-ignore –>“`md<!– Input –>> Multi> Line> ===<!– Prettier 3.9.6 –>> Multi > Line> ===<!– Prettier 3.9.7 –>> Multi> Line> ===“`##### Markdown: Fix HTML block indentation drift in markdown list items([#19987](https://redirect.github.com/prettier/prettier/pull/19987)by [@lazerg](https://redirect.github.com/lazerg))<!– prettier-ignore –>“`markdown<!– Input –>1. Enable images: <p align="center"> <img alt="example"> </p><!– Prettier 3.9.6 (–tab-width=4) –>1. Enable images: <p align="center"> <img alt="example"> </p><!– Prettier 3.9.7 (–tab-width=4) –>1. Enable images: <p align="center"> <img alt="example"> </p>“`##### Angular: Support `@boundary` error boundaries([#20014](https://redirect.github.com/prettier/prettier/pull/20014)by [@Yahiro025](https://redirect.github.com/Yahiro025))<!– prettier-ignore –>“`html<!– Input –>@boundary {<complex-chart [data]="data"/>}@error (let err) {<p>{{err.message}}</p>}<!– Prettier 3.9.6 –>SyntaxError: Unexpected character "EOF" (Do you have an unescaped "{" in your template? Use "{{ '{' }}") to escape it.) (6:1)<!– Prettier 3.9.7 –>@boundary { <complex-chart [data]="data" />} @error (let err) { <p>{{ err.message }}</p>}“`</details>—### Configuration📅 **Schedule**: (in timezone Asia/Tokyo)- Branch creation – Only on Wednesday (`* * * * 3`)- Automerge – At any time (no schedule defined)🚦 **Automerge**: Disabled by config. Please merge this manually once youare satisfied.♻ **Rebasing**: Whenever PR is behind base branch, or you tick therebase/retry checkbox.🔕 **Ignore**: Close this PR and you won't be reminded about this updateagain.—- [ ] <!– rebase-check –>If you want to rebase/retry this PR, checkthis box—This PR was generated by [Mend Renovate](https://mend.io/renovate/).View the [repository joblog](https://developer.mend.io/github/FlutterGen/flutter_gen).<!–renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NS41LjAiLCJ1cGRhdGVkSW5WZXIiOiI0NS4xMi4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119–>Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> , GitHub
Provides the list of the opensource Flutter apps collection with GitHub repository.