proxybuy-flutter/lib/gen/assets.gen.dart

815 lines
26 KiB
Dart

// dart format width=80
/// GENERATED CODE - DO NOT MODIFY BY HAND
/// *****************************************************
/// FlutterGen
/// *****************************************************
// coverage:ignore-file
// ignore_for_file: type=lint
// ignore_for_file: deprecated_member_use,directives_ordering,implicit_dynamic_list_literal,unnecessary_import
import 'package:flutter/services.dart';
import 'package:flutter/widgets.dart';
import 'package:flutter_svg/flutter_svg.dart' as _svg;
import 'package:vector_graphics/vector_graphics.dart' as _vg;
class $AssetsIconsGen {
const $AssetsIconsGen();
/// File path: assets/icons/Iran 1.svg
SvgGenImage get iran1 => const SvgGenImage('assets/icons/Iran 1.svg');
/// File path: assets/icons/Iran.svg
SvgGenImage get iran => const SvgGenImage('assets/icons/Iran.svg');
/// File path: assets/icons/LBA Logo.svg
SvgGenImage get lBALogo => const SvgGenImage('assets/icons/LBA Logo.svg');
/// File path: assets/icons/Line 1.svg
SvgGenImage get line1 => const SvgGenImage('assets/icons/Line 1.svg');
/// File path: assets/icons/Line 4.svg
SvgGenImage get line4 => const SvgGenImage('assets/icons/Line 4.svg');
/// File path: assets/icons/MDS-Public-TW-Button (1).svg
SvgGenImage get mDSPublicTWButton1 =>
const SvgGenImage('assets/icons/MDS-Public-TW-Button (1).svg');
/// File path: assets/icons/MDS-Public-TW-Button.svg
SvgGenImage get mDSPublicTWButton =>
const SvgGenImage('assets/icons/MDS-Public-TW-Button.svg');
/// File path: assets/icons/MDS-Public-TW-Tag.svg
SvgGenImage get mDSPublicTWTag =>
const SvgGenImage('assets/icons/MDS-Public-TW-Tag.svg');
/// File path: assets/icons/Next Button.svg
SvgGenImage get nextButton =>
const SvgGenImage('assets/icons/Next Button.svg');
/// File path: assets/icons/Rectangle off.svg
SvgGenImage get rectangleOff =>
const SvgGenImage('assets/icons/Rectangle off.svg');
/// File path: assets/icons/Saudi Arabia 1.svg
SvgGenImage get saudiArabia1 =>
const SvgGenImage('assets/icons/Saudi Arabia 1.svg');
/// File path: assets/icons/Shape.svg
SvgGenImage get shape => const SvgGenImage('assets/icons/Shape.svg');
/// File path: assets/icons/Shop.svg
SvgGenImage get shop => const SvgGenImage('assets/icons/Shop.svg');
/// File path: assets/icons/Shop2.svg
SvgGenImage get shop2 => const SvgGenImage('assets/icons/Shop2.svg');
/// File path: assets/icons/Winter.svg
SvgGenImage get winter => const SvgGenImage('assets/icons/Winter.svg');
/// File path: assets/icons/arab circle.svg
SvgGenImage get arabCircle =>
const SvgGenImage('assets/icons/arab circle.svg');
/// File path: assets/icons/arrow-down-black.svg
SvgGenImage get arrowDownBlack =>
const SvgGenImage('assets/icons/arrow-down-black.svg');
/// File path: assets/icons/arrow-down.svg
SvgGenImage get arrowDown => const SvgGenImage('assets/icons/arrow-down.svg');
/// File path: assets/icons/arrow-left.svg
SvgGenImage get arrowLeft => const SvgGenImage('assets/icons/arrow-left.svg');
/// File path: assets/icons/arrow-left2.svg
SvgGenImage get arrowLeft2 =>
const SvgGenImage('assets/icons/arrow-left2.svg');
/// File path: assets/icons/arrow-right.svg
SvgGenImage get arrowRight =>
const SvgGenImage('assets/icons/arrow-right.svg');
/// File path: assets/icons/arrow-up.svg
SvgGenImage get arrowUp => const SvgGenImage('assets/icons/arrow-up.svg');
/// File path: assets/icons/back.svg
SvgGenImage get back => const SvgGenImage('assets/icons/back.svg');
/// File path: assets/icons/brush.svg
SvgGenImage get brush => const SvgGenImage('assets/icons/brush.svg');
/// File path: assets/icons/calendar-tick 2.svg
SvgGenImage get calendarTick2 =>
const SvgGenImage('assets/icons/calendar-tick 2.svg');
/// File path: assets/icons/calendar-tick.svg
SvgGenImage get calendarTick =>
const SvgGenImage('assets/icons/calendar-tick.svg');
/// File path: assets/icons/camera2.svg
SvgGenImage get camera2 => const SvgGenImage('assets/icons/camera2.svg');
/// File path: assets/icons/card-add.svg
SvgGenImage get cardAdd => const SvgGenImage('assets/icons/card-add.svg');
/// File path: assets/icons/card-pos.svg
SvgGenImage get cardPos => const SvgGenImage('assets/icons/card-pos.svg');
/// File path: assets/icons/card.svg
SvgGenImage get card => const SvgGenImage('assets/icons/card.svg');
/// File path: assets/icons/category-2.svg
SvgGenImage get category2 => const SvgGenImage('assets/icons/category-2.svg');
/// File path: assets/icons/check-alternative.svg
SvgGenImage get checkAlternative =>
const SvgGenImage('assets/icons/check-alternative.svg');
/// File path: assets/icons/clander.svg
SvgGenImage get clander => const SvgGenImage('assets/icons/clander.svg');
/// File path: assets/icons/clock.svg
SvgGenImage get clock => const SvgGenImage('assets/icons/clock.svg');
/// File path: assets/icons/coin.svg
SvgGenImage get coin => const SvgGenImage('assets/icons/coin.svg');
/// File path: assets/icons/current loc.svg
SvgGenImage get currentLoc =>
const SvgGenImage('assets/icons/current loc.svg');
/// File path: assets/icons/delivery off.svg
SvgGenImage get deliveryOff =>
const SvgGenImage('assets/icons/delivery off.svg');
/// File path: assets/icons/delivery on.svg
SvgGenImage get deliveryOn =>
const SvgGenImage('assets/icons/delivery on.svg');
/// File path: assets/icons/dislike.svg
SvgGenImage get dislike => const SvgGenImage('assets/icons/dislike.svg');
/// File path: assets/icons/down.svg
SvgGenImage get down => const SvgGenImage('assets/icons/down.svg');
/// File path: assets/icons/edit prof.svg
SvgGenImage get editProf => const SvgGenImage('assets/icons/edit prof.svg');
/// File path: assets/icons/element-equal.svg
SvgGenImage get elementEqual =>
const SvgGenImage('assets/icons/element-equal.svg');
/// File path: assets/icons/empty-wallet.svg
SvgGenImage get emptyWallet =>
const SvgGenImage('assets/icons/empty-wallet.svg');
/// File path: assets/icons/favorite.svg
SvgGenImage get favorite => const SvgGenImage('assets/icons/favorite.svg');
/// File path: assets/icons/flat-color-icons_idea.svg
SvgGenImage get flatColorIconsIdea =>
const SvgGenImage('assets/icons/flat-color-icons_idea.svg');
/// File path: assets/icons/flat-color-icons_planner.svg
SvgGenImage get flatColorIconsPlanner =>
const SvgGenImage('assets/icons/flat-color-icons_planner.svg');
/// File path: assets/icons/fluent-color_location-ripple-16.svg
SvgGenImage get fluentColorLocationRipple16 =>
const SvgGenImage('assets/icons/fluent-color_location-ripple-16.svg');
/// File path: assets/icons/gallery-add.svg
SvgGenImage get galleryAdd =>
const SvgGenImage('assets/icons/gallery-add.svg');
/// File path: assets/icons/game 2.svg
SvgGenImage get game2 => const SvgGenImage('assets/icons/game 2.svg');
/// File path: assets/icons/game-icons_winter-gloves.svg
SvgGenImage get gameIconsWinterGloves =>
const SvgGenImage('assets/icons/game-icons_winter-gloves.svg');
/// File path: assets/icons/game.svg
SvgGenImage get game => const SvgGenImage('assets/icons/game.svg');
/// File path: assets/icons/gift.svg
SvgGenImage get gift => const SvgGenImage('assets/icons/gift.svg');
/// File path: assets/icons/girl_clothes.svg
SvgGenImage get girlClothes =>
const SvgGenImage('assets/icons/girl_clothes.svg');
/// File path: assets/icons/global-search.svg
SvgGenImage get globalSearch =>
const SvgGenImage('assets/icons/global-search.svg');
/// File path: assets/icons/global-search2.svg
SvgGenImage get globalSearch2 =>
const SvgGenImage('assets/icons/global-search2.svg');
/// File path: assets/icons/healthicons_fruits-outline.svg
SvgGenImage get healthiconsFruitsOutline =>
const SvgGenImage('assets/icons/healthicons_fruits-outline.svg');
/// File path: assets/icons/heart.svg
SvgGenImage get heart => const SvgGenImage('assets/icons/heart.svg');
/// File path: assets/icons/hugeicons_baby-boy-dress.svg
SvgGenImage get hugeiconsBabyBoyDress =>
const SvgGenImage('assets/icons/hugeicons_baby-boy-dress.svg');
/// File path: assets/icons/hugeicons_cheese-cake-01.svg
SvgGenImage get hugeiconsCheeseCake01 =>
const SvgGenImage('assets/icons/hugeicons_cheese-cake-01.svg');
/// File path: assets/icons/ic_round-local-offer.svg
SvgGenImage get icRoundLocalOffer =>
const SvgGenImage('assets/icons/ic_round-local-offer.svg');
/// File path: assets/icons/infoPic.svg
SvgGenImage get infoPic => const SvgGenImage('assets/icons/infoPic.svg');
/// File path: assets/icons/ion_fast-food-outline.svg
SvgGenImage get ionFastFoodOutline =>
const SvgGenImage('assets/icons/ion_fast-food-outline.svg');
/// File path: assets/icons/iran circle.svg
SvgGenImage get iranCircle =>
const SvgGenImage('assets/icons/iran circle.svg');
/// File path: assets/icons/language-square.svg
SvgGenImage get languageSquare =>
const SvgGenImage('assets/icons/language-square.svg');
/// File path: assets/icons/like.svg
SvgGenImage get like => const SvgGenImage('assets/icons/like.svg');
/// File path: assets/icons/link-2.svg
SvgGenImage get link2 => const SvgGenImage('assets/icons/link-2.svg');
/// File path: assets/icons/list.svg
SvgGenImage get list => const SvgGenImage('assets/icons/list.svg');
/// File path: assets/icons/location.svg
SvgGenImage get location => const SvgGenImage('assets/icons/location.svg');
/// File path: assets/icons/locationPopup.svg
SvgGenImage get locationPopup =>
const SvgGenImage('assets/icons/locationPopup.svg');
/// File path: assets/icons/logout.svg
SvgGenImage get logout => const SvgGenImage('assets/icons/logout.svg');
/// File path: assets/icons/map selected.svg
SvgGenImage get mapSelected =>
const SvgGenImage('assets/icons/map selected.svg');
/// File path: assets/icons/map.svg
SvgGenImage get map => const SvgGenImage('assets/icons/map.svg');
/// File path: assets/icons/material-symbols_location-air.svg
SvgGenImage get materialSymbolsLocationAir =>
const SvgGenImage('assets/icons/material-symbols_location-air.svg');
/// File path: assets/icons/material-symbols_location-ent.svg
SvgGenImage get materialSymbolsLocationEnt =>
const SvgGenImage('assets/icons/material-symbols_location-ent.svg');
/// File path: assets/icons/material-symbols_location-family.svg
SvgGenImage get materialSymbolsLocationFamily =>
const SvgGenImage('assets/icons/material-symbols_location-family.svg');
/// File path: assets/icons/material-symbols_location-health.svg
SvgGenImage get materialSymbolsLocationHealth =>
const SvgGenImage('assets/icons/material-symbols_location-health.svg');
/// File path: assets/icons/material-symbols_location-on.svg
SvgGenImage get materialSymbolsLocationOn =>
const SvgGenImage('assets/icons/material-symbols_location-on.svg');
/// File path: assets/icons/material-symbols_location-onn.svg
SvgGenImage get materialSymbolsLocationOnn =>
const SvgGenImage('assets/icons/material-symbols_location-onn.svg');
/// File path: assets/icons/material-symbols_location-work.svg
SvgGenImage get materialSymbolsLocationWork =>
const SvgGenImage('assets/icons/material-symbols_location-work.svg');
/// File path: assets/icons/message-question.svg
SvgGenImage get messageQuestion =>
const SvgGenImage('assets/icons/message-question.svg');
/// File path: assets/icons/microphone-2.svg
SvgGenImage get microphone2 =>
const SvgGenImage('assets/icons/microphone-2.svg');
/// File path: assets/icons/nearby.svg
SvgGenImage get nearby => const SvgGenImage('assets/icons/nearby.svg');
/// File path: assets/icons/nearby2.svg
SvgGenImage get nearby2 => const SvgGenImage('assets/icons/nearby2.svg');
/// File path: assets/icons/next.svg
SvgGenImage get next => const SvgGenImage('assets/icons/next.svg');
/// File path: assets/icons/notification-bing.svg
SvgGenImage get notificationBing =>
const SvgGenImage('assets/icons/notification-bing.svg');
/// File path: assets/icons/notification-status.svg
SvgGenImage get notificationStatus =>
const SvgGenImage('assets/icons/notification-status.svg');
/// File path: assets/icons/notification.svg
SvgGenImage get notification =>
const SvgGenImage('assets/icons/notification.svg');
/// File path: assets/icons/ph_cheese.svg
SvgGenImage get phCheese => const SvgGenImage('assets/icons/ph_cheese.svg');
/// File path: assets/icons/ph_qr-code.svg
SvgGenImage get phQrCode => const SvgGenImage('assets/icons/ph_qr-code.svg');
/// File path: assets/icons/pick up off.svg
SvgGenImage get pickUpOff =>
const SvgGenImage('assets/icons/pick up off.svg');
/// File path: assets/icons/pickup on.svg
SvgGenImage get pickupOn => const SvgGenImage('assets/icons/pickup on.svg');
/// File path: assets/icons/profile 2.svg
SvgGenImage get profile2 => const SvgGenImage('assets/icons/profile 2.svg');
/// File path: assets/icons/profile.svg
SvgGenImage get profile => const SvgGenImage('assets/icons/profile.svg');
/// File path: assets/icons/receipt-discount 2.svg
SvgGenImage get receiptDiscount2 =>
const SvgGenImage('assets/icons/receipt-discount 2.svg');
/// File path: assets/icons/receipt-discount.svg
SvgGenImage get receiptDiscount =>
const SvgGenImage('assets/icons/receipt-discount.svg');
/// File path: assets/icons/recenter.svg
SvgGenImage get recenter => const SvgGenImage('assets/icons/recenter.svg');
/// File path: assets/icons/ri_search-2-line.svg
SvgGenImage get riSearch2Line =>
const SvgGenImage('assets/icons/ri_search-2-line.svg');
/// File path: assets/icons/routing-2.svg
SvgGenImage get routing2 => const SvgGenImage('assets/icons/routing-2.svg');
/// File path: assets/icons/routing.svg
SvgGenImage get routing => const SvgGenImage('assets/icons/routing.svg');
/// File path: assets/icons/selected list.svg
SvgGenImage get selectedList =>
const SvgGenImage('assets/icons/selected list.svg');
/// File path: assets/icons/shield.svg
SvgGenImage get shield => const SvgGenImage('assets/icons/shield.svg');
/// File path: assets/icons/shopping-cart.svg
SvgGenImage get shoppingCart =>
const SvgGenImage('assets/icons/shopping-cart.svg');
/// File path: assets/icons/slide 2.svg
SvgGenImage get slide2 => const SvgGenImage('assets/icons/slide 2.svg');
/// File path: assets/icons/slide 3.svg
SvgGenImage get slide3 => const SvgGenImage('assets/icons/slide 3.svg');
/// File path: assets/icons/slides 1.svg
SvgGenImage get slides1 => const SvgGenImage('assets/icons/slides 1.svg');
/// File path: assets/icons/solar_logout-3-bold-duotone.svg
SvgGenImage get solarLogout3BoldDuotone =>
const SvgGenImage('assets/icons/solar_logout-3-bold-duotone.svg');
/// File path: assets/icons/sort.svg
SvgGenImage get sort => const SvgGenImage('assets/icons/sort.svg');
/// File path: assets/icons/star fill.svg
SvgGenImage get starFill => const SvgGenImage('assets/icons/star fill.svg');
/// File path: assets/icons/star half.svg
SvgGenImage get starHalf => const SvgGenImage('assets/icons/star half.svg');
/// File path: assets/icons/star.svg
SvgGenImage get star => const SvgGenImage('assets/icons/star.svg');
/// File path: assets/icons/stash_stars-light.svg
SvgGenImage get stashStarsLight =>
const SvgGenImage('assets/icons/stash_stars-light.svg');
/// File path: assets/icons/tick.svg
SvgGenImage get tick => const SvgGenImage('assets/icons/tick.svg');
/// File path: assets/icons/ticket-discount.svg
SvgGenImage get ticketDiscount =>
const SvgGenImage('assets/icons/ticket-discount.svg');
/// File path: assets/icons/ticket-discount2.svg
SvgGenImage get ticketDiscount2 =>
const SvgGenImage('assets/icons/ticket-discount2.svg');
/// File path: assets/icons/timer-pause.svg
SvgGenImage get timerPause =>
const SvgGenImage('assets/icons/timer-pause.svg');
/// File path: assets/icons/timer-start.svg
SvgGenImage get timerStart =>
const SvgGenImage('assets/icons/timer-start.svg');
/// File path: assets/icons/timer.svg
SvgGenImage get timer => const SvgGenImage('assets/icons/timer.svg');
/// File path: assets/icons/usa circle.svg
SvgGenImage get usaCircle => const SvgGenImage('assets/icons/usa circle.svg');
/// List of all assets
List<SvgGenImage> get values => [
iran1,
iran,
lBALogo,
line1,
line4,
mDSPublicTWButton1,
mDSPublicTWButton,
mDSPublicTWTag,
nextButton,
rectangleOff,
saudiArabia1,
shape,
shop,
shop2,
winter,
arabCircle,
arrowDownBlack,
arrowDown,
arrowLeft,
arrowLeft2,
arrowRight,
arrowUp,
back,
brush,
calendarTick2,
calendarTick,
camera2,
cardAdd,
cardPos,
card,
category2,
checkAlternative,
clander,
clock,
coin,
currentLoc,
deliveryOff,
deliveryOn,
dislike,
down,
editProf,
elementEqual,
emptyWallet,
favorite,
flatColorIconsIdea,
flatColorIconsPlanner,
fluentColorLocationRipple16,
galleryAdd,
game2,
gameIconsWinterGloves,
game,
gift,
girlClothes,
globalSearch,
globalSearch2,
healthiconsFruitsOutline,
heart,
hugeiconsBabyBoyDress,
hugeiconsCheeseCake01,
icRoundLocalOffer,
infoPic,
ionFastFoodOutline,
iranCircle,
languageSquare,
like,
link2,
list,
location,
locationPopup,
logout,
mapSelected,
map,
materialSymbolsLocationAir,
materialSymbolsLocationEnt,
materialSymbolsLocationFamily,
materialSymbolsLocationHealth,
materialSymbolsLocationOn,
materialSymbolsLocationOnn,
materialSymbolsLocationWork,
messageQuestion,
microphone2,
nearby,
nearby2,
next,
notificationBing,
notificationStatus,
notification,
phCheese,
phQrCode,
pickUpOff,
pickupOn,
profile2,
profile,
receiptDiscount2,
receiptDiscount,
recenter,
riSearch2Line,
routing2,
routing,
selectedList,
shield,
shoppingCart,
slide2,
slide3,
slides1,
solarLogout3BoldDuotone,
sort,
starFill,
starHalf,
star,
stashStarsLight,
tick,
ticketDiscount,
ticketDiscount2,
timerPause,
timerStart,
timer,
usaCircle,
];
}
class $AssetsImagesGen {
const $AssetsImagesGen();
/// File path: assets/images/Arab.png
AssetGenImage get arab => const AssetGenImage('assets/images/Arab.png');
/// File path: assets/images/Frame.svg
SvgGenImage get frame => const SvgGenImage('assets/images/Frame.svg');
/// File path: assets/images/Google svg.svg
SvgGenImage get googleSvg =>
const SvgGenImage('assets/images/Google svg.svg');
/// File path: assets/images/Great Britain 1.png
AssetGenImage get greatBritain1 =>
const AssetGenImage('assets/images/Great Britain 1.png');
/// File path: assets/images/Image.png
AssetGenImage get image => const AssetGenImage('assets/images/Image.png');
/// File path: assets/images/Iran 1.png
AssetGenImage get iran1 => const AssetGenImage('assets/images/Iran 1.png');
/// File path: assets/images/Iran.png
AssetGenImage get iran => const AssetGenImage('assets/images/Iran.png');
/// File path: assets/images/Media.png
AssetGenImage get media => const AssetGenImage('assets/images/Media.png');
/// File path: assets/images/Saudi Arabia 1.png
AssetGenImage get saudiArabia1 =>
const AssetGenImage('assets/images/Saudi Arabia 1.png');
/// File path: assets/images/USA 2.png
AssetGenImage get usa2 => const AssetGenImage('assets/images/USA 2.png');
/// File path: assets/images/logo.svg
SvgGenImage get logo => const SvgGenImage('assets/images/logo.svg');
/// File path: assets/images/onboarding3.svg
SvgGenImage get onboarding3 =>
const SvgGenImage('assets/images/onboarding3.svg');
/// File path: assets/images/ounboarding 1.svg
SvgGenImage get ounboarding1 =>
const SvgGenImage('assets/images/ounboarding 1.svg');
/// File path: assets/images/seamless-pattern-with-shopping-carts-gift-salevector-background_678099-556 1.png
AssetGenImage
get seamlessPatternWithShoppingCartsGiftSalevectorBackground6780995561 =>
const AssetGenImage(
'assets/images/seamless-pattern-with-shopping-carts-gift-salevector-background_678099-556 1.png',
);
/// File path: assets/images/top deals and stores.png
AssetGenImage get topDealsAndStores =>
const AssetGenImage('assets/images/top deals and stores.png');
/// File path: assets/images/usa.png
AssetGenImage get usa => const AssetGenImage('assets/images/usa.png');
/// File path: assets/images/userinfo.svg
SvgGenImage get userinfo => const SvgGenImage('assets/images/userinfo.svg');
/// File path: assets/images/wp1929534-fast-food-wallpapers 1.png
AssetGenImage get wp1929534FastFoodWallpapers1 =>
const AssetGenImage('assets/images/wp1929534-fast-food-wallpapers 1.png');
/// List of all assets
List<dynamic> get values => [
arab,
frame,
googleSvg,
greatBritain1,
image,
iran1,
iran,
media,
saudiArabia1,
usa2,
logo,
onboarding3,
ounboarding1,
seamlessPatternWithShoppingCartsGiftSalevectorBackground6780995561,
topDealsAndStores,
usa,
userinfo,
wp1929534FastFoodWallpapers1,
];
}
class Assets {
const Assets._();
static const $AssetsIconsGen icons = $AssetsIconsGen();
static const $AssetsImagesGen images = $AssetsImagesGen();
}
class AssetGenImage {
const AssetGenImage(
this._assetName, {
this.size,
this.flavors = const {},
this.animation,
});
final String _assetName;
final Size? size;
final Set<String> flavors;
final AssetGenImageAnimation? animation;
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 = true,
bool isAntiAlias = false,
String? package,
FilterQuality filterQuality = FilterQuality.medium,
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;
}
class AssetGenImageAnimation {
const AssetGenImageAnimation({
required this.isAnimation,
required this.duration,
required this.frames,
});
final bool isAnimation;
final Duration duration;
final int frames;
}
class SvgGenImage {
const SvgGenImage(this._assetName, {this.size, this.flavors = const {}})
: _isVecFormat = false;
const SvgGenImage.vec(this._assetName, {this.size, this.flavors = const {}})
: _isVecFormat = true;
final String _assetName;
final Size? size;
final Set<String> flavors;
final bool _isVecFormat;
_svg.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,
String? semanticsLabel,
bool excludeFromSemantics = false,
_svg.SvgTheme? theme,
_svg.ColorMapper? colorMapper,
ColorFilter? colorFilter,
Clip clipBehavior = Clip.hardEdge,
@deprecated Color? color,
@deprecated BlendMode colorBlendMode = BlendMode.srcIn,
@deprecated bool cacheColorFilter = false,
}) {
final _svg.BytesLoader loader;
if (_isVecFormat) {
loader = _vg.AssetBytesLoader(
_assetName,
assetBundle: bundle,
packageName: package,
);
} else {
loader = _svg.SvgAssetLoader(
_assetName,
assetBundle: bundle,
packageName: package,
theme: theme,
colorMapper: colorMapper,
);
}
return _svg.SvgPicture(
loader,
key: key,
matchTextDirection: matchTextDirection,
width: width,
height: height,
fit: fit,
alignment: alignment,
allowDrawingOutsideViewBox: allowDrawingOutsideViewBox,
placeholderBuilder: placeholderBuilder,
semanticsLabel: semanticsLabel,
excludeFromSemantics: excludeFromSemantics,
colorFilter:
colorFilter ??
(color == null ? null : ColorFilter.mode(color, colorBlendMode)),
clipBehavior: clipBehavior,
cacheColorFilter: cacheColorFilter,
);
}
String get path => _assetName;
String get keyName => _assetName;
}