first commit
This commit is contained in:
@@ -0,0 +1,489 @@
|
||||
/// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
/// *****************************************************
|
||||
/// FlutterGen
|
||||
/// *****************************************************
|
||||
|
||||
// coverage:ignore-file
|
||||
// ignore_for_file: type=lint
|
||||
// ignore_for_file: directives_ordering,unnecessary_import,implicit_dynamic_list_literal,deprecated_member_use
|
||||
|
||||
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/all_categories.svg
|
||||
SvgGenImage get allCategories =>
|
||||
const SvgGenImage('assets/icons/all_categories.svg');
|
||||
|
||||
/// File path: assets/icons/calendar.svg
|
||||
SvgGenImage get calendar => const SvgGenImage('assets/icons/calendar.svg');
|
||||
|
||||
/// File path: assets/icons/cash.svg
|
||||
SvgGenImage get cash => const SvgGenImage('assets/icons/cash.svg');
|
||||
|
||||
/// File path: assets/icons/dashboard.svg
|
||||
SvgGenImage get dashboard => const SvgGenImage('assets/icons/dashboard.svg');
|
||||
|
||||
/// File path: assets/icons/debit.svg
|
||||
SvgGenImage get debit => const SvgGenImage('assets/icons/debit.svg');
|
||||
|
||||
/// File path: assets/icons/delete.svg
|
||||
SvgGenImage get delete => const SvgGenImage('assets/icons/delete.svg');
|
||||
|
||||
/// File path: assets/icons/discount.svg
|
||||
SvgGenImage get discount => const SvgGenImage('assets/icons/discount.svg');
|
||||
|
||||
/// File path: assets/icons/diskon.svg
|
||||
SvgGenImage get diskon => const SvgGenImage('assets/icons/diskon.svg');
|
||||
|
||||
/// File path: assets/icons/done.svg
|
||||
SvgGenImage get done => const SvgGenImage('assets/icons/done.svg');
|
||||
|
||||
/// File path: assets/icons/drink.svg
|
||||
SvgGenImage get drink => const SvgGenImage('assets/icons/drink.svg');
|
||||
|
||||
/// File path: assets/icons/edit.svg
|
||||
SvgGenImage get edit => const SvgGenImage('assets/icons/edit.svg');
|
||||
|
||||
/// File path: assets/icons/food.svg
|
||||
SvgGenImage get food => const SvgGenImage('assets/icons/food.svg');
|
||||
|
||||
/// File path: assets/icons/history.svg
|
||||
SvgGenImage get history => const SvgGenImage('assets/icons/history.svg');
|
||||
|
||||
/// File path: assets/icons/home-resto.svg
|
||||
SvgGenImage get homeResto => const SvgGenImage('assets/icons/home-resto.svg');
|
||||
|
||||
/// File path: assets/icons/home.svg
|
||||
SvgGenImage get home => const SvgGenImage('assets/icons/home.svg');
|
||||
|
||||
/// File path: assets/icons/image.svg
|
||||
SvgGenImage get image => const SvgGenImage('assets/icons/image.svg');
|
||||
|
||||
/// File path: assets/icons/kelola-diskon.svg
|
||||
SvgGenImage get kelolaDiskon =>
|
||||
const SvgGenImage('assets/icons/kelola-diskon.svg');
|
||||
|
||||
/// File path: assets/icons/kelola-pajak.svg
|
||||
SvgGenImage get kelolaPajak =>
|
||||
const SvgGenImage('assets/icons/kelola-pajak.svg');
|
||||
|
||||
/// File path: assets/icons/kelola-printer.svg
|
||||
SvgGenImage get kelolaPrinter =>
|
||||
const SvgGenImage('assets/icons/kelola-printer.svg');
|
||||
|
||||
/// File path: assets/icons/kelola-produk.svg
|
||||
SvgGenImage get kelolaProduk =>
|
||||
const SvgGenImage('assets/icons/kelola-produk.svg');
|
||||
|
||||
/// File path: assets/icons/layanan.svg
|
||||
SvgGenImage get layanan => const SvgGenImage('assets/icons/layanan.svg');
|
||||
|
||||
/// File path: assets/icons/logout.svg
|
||||
SvgGenImage get logout => const SvgGenImage('assets/icons/logout.svg');
|
||||
|
||||
/// File path: assets/icons/no-product.svg
|
||||
SvgGenImage get noProduct => const SvgGenImage('assets/icons/no-product.svg');
|
||||
|
||||
/// File path: assets/icons/ongkir.svg
|
||||
SvgGenImage get ongkir => const SvgGenImage('assets/icons/ongkir.svg');
|
||||
|
||||
/// File path: assets/icons/orders.svg
|
||||
SvgGenImage get orders => const SvgGenImage('assets/icons/orders.svg');
|
||||
|
||||
/// File path: assets/icons/pajak.svg
|
||||
SvgGenImage get pajak => const SvgGenImage('assets/icons/pajak.svg');
|
||||
|
||||
/// File path: assets/icons/payments.svg
|
||||
SvgGenImage get payments => const SvgGenImage('assets/icons/payments.svg');
|
||||
|
||||
/// File path: assets/icons/print.svg
|
||||
SvgGenImage get print => const SvgGenImage('assets/icons/print.svg');
|
||||
|
||||
/// File path: assets/icons/qr_code.svg
|
||||
SvgGenImage get qrCode => const SvgGenImage('assets/icons/qr_code.svg');
|
||||
|
||||
/// File path: assets/icons/report.svg
|
||||
SvgGenImage get report => const SvgGenImage('assets/icons/report.svg');
|
||||
|
||||
/// File path: assets/icons/setting.svg
|
||||
SvgGenImage get setting => const SvgGenImage('assets/icons/setting.svg');
|
||||
|
||||
/// File path: assets/icons/shopping-basket.svg
|
||||
SvgGenImage get shoppingBasket =>
|
||||
const SvgGenImage('assets/icons/shopping-basket.svg');
|
||||
|
||||
/// File path: assets/icons/snack.svg
|
||||
SvgGenImage get snack => const SvgGenImage('assets/icons/snack.svg');
|
||||
|
||||
/// File path: assets/icons/success.svg
|
||||
SvgGenImage get success => const SvgGenImage('assets/icons/success.svg');
|
||||
|
||||
/// List of all assets
|
||||
List<SvgGenImage> get values => [
|
||||
allCategories,
|
||||
calendar,
|
||||
cash,
|
||||
dashboard,
|
||||
debit,
|
||||
delete,
|
||||
discount,
|
||||
diskon,
|
||||
done,
|
||||
drink,
|
||||
edit,
|
||||
food,
|
||||
history,
|
||||
homeResto,
|
||||
home,
|
||||
image,
|
||||
kelolaDiskon,
|
||||
kelolaPajak,
|
||||
kelolaPrinter,
|
||||
kelolaProduk,
|
||||
layanan,
|
||||
logout,
|
||||
noProduct,
|
||||
ongkir,
|
||||
orders,
|
||||
pajak,
|
||||
payments,
|
||||
print,
|
||||
qrCode,
|
||||
report,
|
||||
setting,
|
||||
shoppingBasket,
|
||||
snack,
|
||||
success
|
||||
];
|
||||
}
|
||||
|
||||
class $AssetsImagesGen {
|
||||
const $AssetsImagesGen();
|
||||
|
||||
/// File path: assets/images/drink1.png
|
||||
AssetGenImage get drink1 => const AssetGenImage('assets/images/drink1.png');
|
||||
|
||||
/// File path: assets/images/drink2.png
|
||||
AssetGenImage get drink2 => const AssetGenImage('assets/images/drink2.png');
|
||||
|
||||
/// File path: assets/images/drink3.png
|
||||
AssetGenImage get drink3 => const AssetGenImage('assets/images/drink3.png');
|
||||
|
||||
/// File path: assets/images/drink4.png
|
||||
AssetGenImage get drink4 => const AssetGenImage('assets/images/drink4.png');
|
||||
|
||||
/// File path: assets/images/drink5.png
|
||||
AssetGenImage get drink5 => const AssetGenImage('assets/images/drink5.png');
|
||||
|
||||
/// File path: assets/images/drink6.png
|
||||
AssetGenImage get drink6 => const AssetGenImage('assets/images/drink6.png');
|
||||
|
||||
/// File path: assets/images/drink7.png
|
||||
AssetGenImage get drink7 => const AssetGenImage('assets/images/drink7.png');
|
||||
|
||||
/// File path: assets/images/logo.png
|
||||
AssetGenImage get logo => const AssetGenImage('assets/images/logo.png');
|
||||
|
||||
/// File path: assets/images/manage_printer.png
|
||||
AssetGenImage get managePrinter =>
|
||||
const AssetGenImage('assets/images/manage_printer.png');
|
||||
|
||||
/// File path: assets/images/manage_product.png
|
||||
AssetGenImage get manageProduct =>
|
||||
const AssetGenImage('assets/images/manage_product.png');
|
||||
|
||||
/// File path: assets/images/manage_qr.png
|
||||
AssetGenImage get manageQr =>
|
||||
const AssetGenImage('assets/images/manage_qr.png');
|
||||
|
||||
/// File path: assets/images/menu1.png
|
||||
AssetGenImage get menu1 => const AssetGenImage('assets/images/menu1.png');
|
||||
|
||||
/// File path: assets/images/menu10.png
|
||||
AssetGenImage get menu10 => const AssetGenImage('assets/images/menu10.png');
|
||||
|
||||
/// File path: assets/images/menu11.png
|
||||
AssetGenImage get menu11 => const AssetGenImage('assets/images/menu11.png');
|
||||
|
||||
/// File path: assets/images/menu12.png
|
||||
AssetGenImage get menu12 => const AssetGenImage('assets/images/menu12.png');
|
||||
|
||||
/// File path: assets/images/menu13.png
|
||||
AssetGenImage get menu13 => const AssetGenImage('assets/images/menu13.png');
|
||||
|
||||
/// File path: assets/images/menu14.png
|
||||
AssetGenImage get menu14 => const AssetGenImage('assets/images/menu14.png');
|
||||
|
||||
/// File path: assets/images/menu2.png
|
||||
AssetGenImage get menu2 => const AssetGenImage('assets/images/menu2.png');
|
||||
|
||||
/// File path: assets/images/menu3.png
|
||||
AssetGenImage get menu3 => const AssetGenImage('assets/images/menu3.png');
|
||||
|
||||
/// File path: assets/images/menu4.png
|
||||
AssetGenImage get menu4 => const AssetGenImage('assets/images/menu4.png');
|
||||
|
||||
/// File path: assets/images/menu5.png
|
||||
AssetGenImage get menu5 => const AssetGenImage('assets/images/menu5.png');
|
||||
|
||||
/// File path: assets/images/menu6.png
|
||||
AssetGenImage get menu6 => const AssetGenImage('assets/images/menu6.png');
|
||||
|
||||
/// File path: assets/images/menu7.png
|
||||
AssetGenImage get menu7 => const AssetGenImage('assets/images/menu7.png');
|
||||
|
||||
/// File path: assets/images/menu8.png
|
||||
AssetGenImage get menu8 => const AssetGenImage('assets/images/menu8.png');
|
||||
|
||||
/// File path: assets/images/product1.jpg
|
||||
AssetGenImage get product1 =>
|
||||
const AssetGenImage('assets/images/product1.jpg');
|
||||
|
||||
/// File path: assets/images/product2.jpg
|
||||
AssetGenImage get product2 =>
|
||||
const AssetGenImage('assets/images/product2.jpg');
|
||||
|
||||
/// File path: assets/images/product3.jpg
|
||||
AssetGenImage get product3 =>
|
||||
const AssetGenImage('assets/images/product3.jpg');
|
||||
|
||||
/// File path: assets/images/product4.jpg
|
||||
AssetGenImage get product4 =>
|
||||
const AssetGenImage('assets/images/product4.jpg');
|
||||
|
||||
/// List of all assets
|
||||
List<AssetGenImage> get values => [
|
||||
drink1,
|
||||
drink2,
|
||||
drink3,
|
||||
drink4,
|
||||
drink5,
|
||||
drink6,
|
||||
drink7,
|
||||
logo,
|
||||
managePrinter,
|
||||
manageProduct,
|
||||
manageQr,
|
||||
menu1,
|
||||
menu10,
|
||||
menu11,
|
||||
menu12,
|
||||
menu13,
|
||||
menu14,
|
||||
menu2,
|
||||
menu3,
|
||||
menu4,
|
||||
menu5,
|
||||
menu6,
|
||||
menu7,
|
||||
menu8,
|
||||
product1,
|
||||
product2,
|
||||
product3,
|
||||
product4
|
||||
];
|
||||
}
|
||||
|
||||
class $AssetsLogoGen {
|
||||
const $AssetsLogoGen();
|
||||
|
||||
/// File path: assets/logo/logo.png
|
||||
AssetGenImage get logo => const AssetGenImage('assets/logo/logo.png');
|
||||
|
||||
/// File path: assets/logo/logo2.png
|
||||
AssetGenImage get logo2 => const AssetGenImage('assets/logo/logo2.png');
|
||||
|
||||
/// File path: assets/logo/logo3.png
|
||||
AssetGenImage get logo3 => const AssetGenImage('assets/logo/logo3.png');
|
||||
|
||||
/// File path: assets/logo/logo4.png
|
||||
AssetGenImage get logo4 => const AssetGenImage('assets/logo/logo4.png');
|
||||
|
||||
/// File path: assets/logo/logo5.png
|
||||
AssetGenImage get logo5 => const AssetGenImage('assets/logo/logo5.png');
|
||||
|
||||
/// File path: assets/logo/logo6.png
|
||||
AssetGenImage get logo6 => const AssetGenImage('assets/logo/logo6.png');
|
||||
|
||||
/// File path: assets/logo/logo_app_icon.png
|
||||
AssetGenImage get logoAppIcon =>
|
||||
const AssetGenImage('assets/logo/logo_app_icon.png');
|
||||
|
||||
/// File path: assets/logo/mylogo.png
|
||||
AssetGenImage get mylogo => const AssetGenImage('assets/logo/mylogo.png');
|
||||
|
||||
/// List of all assets
|
||||
List<AssetGenImage> get values =>
|
||||
[logo, logo2, logo3, logo4, logo5, logo6, logoAppIcon, mylogo];
|
||||
}
|
||||
|
||||
class Assets {
|
||||
Assets._();
|
||||
|
||||
static const $AssetsIconsGen icons = $AssetsIconsGen();
|
||||
static const $AssetsImagesGen images = $AssetsImagesGen();
|
||||
static const $AssetsLogoGen logo = $AssetsLogoGen();
|
||||
}
|
||||
|
||||
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 = true,
|
||||
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;
|
||||
}
|
||||
|
||||
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,
|
||||
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,
|
||||
);
|
||||
}
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user