|
|
@@ -7,6 +7,110 @@
|
|
|
// ignore_for_file: type=lint
|
|
|
// ignore_for_file: directives_ordering,unnecessary_import,implicit_dynamic_list_literal,deprecated_member_use
|
|
|
|
|
|
+import 'package:flutter/widgets.dart';
|
|
|
+
|
|
|
+class $AssetsImagesGen {
|
|
|
+ const $AssetsImagesGen();
|
|
|
+
|
|
|
+ /// File path: assets/images/icon_files_new_dir.webp
|
|
|
+ AssetGenImage get iconFilesNewDir =>
|
|
|
+ const AssetGenImage('assets/images/icon_files_new_dir.webp');
|
|
|
+
|
|
|
+ /// File path: assets/images/icon_more.webp
|
|
|
+ AssetGenImage get iconMore =>
|
|
|
+ const AssetGenImage('assets/images/icon_more.webp');
|
|
|
+
|
|
|
+ /// File path: assets/images/icon_search.webp
|
|
|
+ AssetGenImage get iconSearch =>
|
|
|
+ const AssetGenImage('assets/images/icon_search.webp');
|
|
|
+
|
|
|
+ /// List of all assets
|
|
|
+ List<AssetGenImage> get values => [iconFilesNewDir, iconMore, iconSearch];
|
|
|
+}
|
|
|
+
|
|
|
class Assets {
|
|
|
Assets._();
|
|
|
+
|
|
|
+ static const $AssetsImagesGen images = $AssetsImagesGen();
|
|
|
+}
|
|
|
+
|
|
|
+class AssetGenImage {
|
|
|
+ const AssetGenImage(
|
|
|
+ this._assetName, {
|
|
|
+ this.size,
|
|
|
+ this.flavors = const {},
|
|
|
+ });
|
|
|
+
|
|
|
+ final String _assetName;
|
|
|
+
|
|
|
+ final Size? size;
|
|
|
+ final Set<String> flavors;
|
|
|
+
|
|
|
+ Image image({
|
|
|
+ Key? key,
|
|
|
+ AssetBundle? bundle,
|
|
|
+ ImageFrameBuilder? frameBuilder,
|
|
|
+ ImageErrorWidgetBuilder? errorBuilder,
|
|
|
+ String? semanticLabel,
|
|
|
+ bool excludeFromSemantics = false,
|
|
|
+ double? scale,
|
|
|
+ double? width,
|
|
|
+ double? height,
|
|
|
+ Color? color,
|
|
|
+ Animation<double>? opacity,
|
|
|
+ BlendMode? colorBlendMode,
|
|
|
+ BoxFit? fit,
|
|
|
+ AlignmentGeometry alignment = Alignment.center,
|
|
|
+ ImageRepeat repeat = ImageRepeat.noRepeat,
|
|
|
+ Rect? centerSlice,
|
|
|
+ bool matchTextDirection = false,
|
|
|
+ bool gaplessPlayback = false,
|
|
|
+ bool isAntiAlias = false,
|
|
|
+ String? package,
|
|
|
+ FilterQuality filterQuality = FilterQuality.low,
|
|
|
+ int? cacheWidth,
|
|
|
+ int? cacheHeight,
|
|
|
+ }) {
|
|
|
+ return Image.asset(
|
|
|
+ _assetName,
|
|
|
+ key: key,
|
|
|
+ bundle: bundle,
|
|
|
+ frameBuilder: frameBuilder,
|
|
|
+ errorBuilder: errorBuilder,
|
|
|
+ semanticLabel: semanticLabel,
|
|
|
+ excludeFromSemantics: excludeFromSemantics,
|
|
|
+ scale: scale,
|
|
|
+ width: width,
|
|
|
+ height: height,
|
|
|
+ color: color,
|
|
|
+ opacity: opacity,
|
|
|
+ colorBlendMode: colorBlendMode,
|
|
|
+ fit: fit,
|
|
|
+ alignment: alignment,
|
|
|
+ repeat: repeat,
|
|
|
+ centerSlice: centerSlice,
|
|
|
+ matchTextDirection: matchTextDirection,
|
|
|
+ gaplessPlayback: gaplessPlayback,
|
|
|
+ isAntiAlias: isAntiAlias,
|
|
|
+ package: package,
|
|
|
+ filterQuality: filterQuality,
|
|
|
+ cacheWidth: cacheWidth,
|
|
|
+ cacheHeight: cacheHeight,
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+ ImageProvider provider({
|
|
|
+ AssetBundle? bundle,
|
|
|
+ String? package,
|
|
|
+ }) {
|
|
|
+ return AssetImage(
|
|
|
+ _assetName,
|
|
|
+ bundle: bundle,
|
|
|
+ package: package,
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+ String get path => _assetName;
|
|
|
+
|
|
|
+ String get keyName => _assetName;
|
|
|
}
|