|
|
@ -3,6 +3,8 @@
|
|
|
|
/// FlutterGen
|
|
|
|
/// FlutterGen
|
|
|
|
/// *****************************************************
|
|
|
|
/// *****************************************************
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// coverage:ignore-file
|
|
|
|
|
|
|
|
// ignore_for_file: type=lint
|
|
|
|
// ignore_for_file: directives_ordering,unnecessary_import
|
|
|
|
// ignore_for_file: directives_ordering,unnecessary_import
|
|
|
|
|
|
|
|
|
|
|
|
import 'package:flutter/widgets.dart';
|
|
|
|
import 'package:flutter/widgets.dart';
|
|
|
@ -567,19 +569,23 @@ class Assets {
|
|
|
|
static const $AssetsUserGen user = $AssetsUserGen();
|
|
|
|
static const $AssetsUserGen user = $AssetsUserGen();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
class AssetGenImage extends AssetImage {
|
|
|
|
class AssetGenImage {
|
|
|
|
const AssetGenImage(String assetName) : super(assetName);
|
|
|
|
const AssetGenImage(this._assetName);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
final String _assetName;
|
|
|
|
|
|
|
|
|
|
|
|
Image image({
|
|
|
|
Image image({
|
|
|
|
Key? key,
|
|
|
|
Key? key,
|
|
|
|
|
|
|
|
AssetBundle? bundle,
|
|
|
|
ImageFrameBuilder? frameBuilder,
|
|
|
|
ImageFrameBuilder? frameBuilder,
|
|
|
|
ImageLoadingBuilder? loadingBuilder,
|
|
|
|
|
|
|
|
ImageErrorWidgetBuilder? errorBuilder,
|
|
|
|
ImageErrorWidgetBuilder? errorBuilder,
|
|
|
|
String? semanticLabel,
|
|
|
|
String? semanticLabel,
|
|
|
|
bool excludeFromSemantics = false,
|
|
|
|
bool excludeFromSemantics = false,
|
|
|
|
|
|
|
|
double? scale = 1.0,
|
|
|
|
double? width,
|
|
|
|
double? width,
|
|
|
|
double? height,
|
|
|
|
double? height,
|
|
|
|
Color? color,
|
|
|
|
Color? color,
|
|
|
|
|
|
|
|
Animation<double>? opacity,
|
|
|
|
BlendMode? colorBlendMode,
|
|
|
|
BlendMode? colorBlendMode,
|
|
|
|
BoxFit? fit,
|
|
|
|
BoxFit? fit,
|
|
|
|
AlignmentGeometry alignment = Alignment.center,
|
|
|
|
AlignmentGeometry alignment = Alignment.center,
|
|
|
@ -588,19 +594,24 @@ class AssetGenImage extends AssetImage {
|
|
|
|
bool matchTextDirection = false,
|
|
|
|
bool matchTextDirection = false,
|
|
|
|
bool gaplessPlayback = false,
|
|
|
|
bool gaplessPlayback = false,
|
|
|
|
bool isAntiAlias = false,
|
|
|
|
bool isAntiAlias = false,
|
|
|
|
|
|
|
|
String? package,
|
|
|
|
FilterQuality filterQuality = FilterQuality.low,
|
|
|
|
FilterQuality filterQuality = FilterQuality.low,
|
|
|
|
|
|
|
|
int? cacheWidth,
|
|
|
|
|
|
|
|
int? cacheHeight,
|
|
|
|
}) {
|
|
|
|
}) {
|
|
|
|
return Image(
|
|
|
|
return Image.asset(
|
|
|
|
|
|
|
|
_assetName,
|
|
|
|
key: key,
|
|
|
|
key: key,
|
|
|
|
image: this,
|
|
|
|
bundle: bundle,
|
|
|
|
frameBuilder: frameBuilder,
|
|
|
|
frameBuilder: frameBuilder,
|
|
|
|
loadingBuilder: loadingBuilder,
|
|
|
|
|
|
|
|
errorBuilder: errorBuilder,
|
|
|
|
errorBuilder: errorBuilder,
|
|
|
|
semanticLabel: semanticLabel,
|
|
|
|
semanticLabel: semanticLabel,
|
|
|
|
excludeFromSemantics: excludeFromSemantics,
|
|
|
|
excludeFromSemantics: excludeFromSemantics,
|
|
|
|
|
|
|
|
scale: scale,
|
|
|
|
width: width,
|
|
|
|
width: width,
|
|
|
|
height: height,
|
|
|
|
height: height,
|
|
|
|
color: color,
|
|
|
|
color: color,
|
|
|
|
|
|
|
|
opacity: opacity,
|
|
|
|
colorBlendMode: colorBlendMode,
|
|
|
|
colorBlendMode: colorBlendMode,
|
|
|
|
fit: fit,
|
|
|
|
fit: fit,
|
|
|
|
alignment: alignment,
|
|
|
|
alignment: alignment,
|
|
|
@ -609,9 +620,12 @@ class AssetGenImage extends AssetImage {
|
|
|
|
matchTextDirection: matchTextDirection,
|
|
|
|
matchTextDirection: matchTextDirection,
|
|
|
|
gaplessPlayback: gaplessPlayback,
|
|
|
|
gaplessPlayback: gaplessPlayback,
|
|
|
|
isAntiAlias: isAntiAlias,
|
|
|
|
isAntiAlias: isAntiAlias,
|
|
|
|
|
|
|
|
package: package,
|
|
|
|
filterQuality: filterQuality,
|
|
|
|
filterQuality: filterQuality,
|
|
|
|
|
|
|
|
cacheWidth: cacheWidth,
|
|
|
|
|
|
|
|
cacheHeight: cacheHeight,
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
String get path => assetName;
|
|
|
|
String get path => _assetName;
|
|
|
|
}
|
|
|
|
}
|
|
|
|