|
| 1 | +/// GENERATED CODE - DO NOT MODIFY BY HAND |
| 2 | +/// ***************************************************** |
| 3 | +/// FlutterGen |
| 4 | +/// ***************************************************** |
| 5 | +
|
| 6 | +import 'package:flutter/widgets.dart'; |
| 7 | +import 'package:flutter_svg/flutter_svg.dart'; |
| 8 | +import 'package:flutter/services.dart'; |
| 9 | + |
| 10 | +class Assets { |
| 11 | + Assets._(); |
| 12 | + |
| 13 | + static const AssetGenImage imagesChip1 = |
| 14 | + AssetGenImage('assets/images/chip1.jpg'); |
| 15 | + static const AssetGenImage imagesChip2 = |
| 16 | + AssetGenImage('assets/images/chip2.jpg'); |
| 17 | + static const AssetGenImage imagesChip3Chip3 = |
| 18 | + AssetGenImage('assets/images/chip3/chip3.jpg'); |
| 19 | + static const AssetGenImage imagesChip4Chip4 = |
| 20 | + AssetGenImage('assets/images/chip4/chip4.jpg'); |
| 21 | + static const SvgGenImage imagesIconsFuchsia = |
| 22 | + SvgGenImage('assets/images/icons/fuchsia.svg'); |
| 23 | + static const SvgGenImage imagesIconsKmm = |
| 24 | + SvgGenImage('assets/images/icons/kmm.svg'); |
| 25 | + static const SvgGenImage imagesIconsPaint = |
| 26 | + SvgGenImage('assets/images/icons/paint.svg'); |
| 27 | + static const AssetGenImage imagesLogo = |
| 28 | + AssetGenImage('assets/images/logo.png'); |
| 29 | + static const AssetGenImage imagesProfile = |
| 30 | + AssetGenImage('assets/images/profile.jpg'); |
| 31 | + static const String jsonFruits = 'assets/json/fruits.json'; |
| 32 | + static const AssetGenImage picturesChip5 = |
| 33 | + AssetGenImage('pictures/chip5.jpg'); |
| 34 | +} |
| 35 | + |
| 36 | +class AssetGenImage extends AssetImage { |
| 37 | + const AssetGenImage(String assetName) |
| 38 | + : _assetName = assetName, |
| 39 | + super(assetName); |
| 40 | + final String _assetName; |
| 41 | + |
| 42 | + Image image({ |
| 43 | + ImageFrameBuilder frameBuilder, |
| 44 | + ImageLoadingBuilder loadingBuilder, |
| 45 | + ImageErrorWidgetBuilder errorBuilder, |
| 46 | + String semanticLabel, |
| 47 | + bool excludeFromSemantics = false, |
| 48 | + double width, |
| 49 | + double height, |
| 50 | + Color color, |
| 51 | + BlendMode colorBlendMode, |
| 52 | + BoxFit fit, |
| 53 | + AlignmentGeometry alignment = Alignment.center, |
| 54 | + ImageRepeat repeat = ImageRepeat.noRepeat, |
| 55 | + Rect centerSlice, |
| 56 | + bool matchTextDirection = false, |
| 57 | + bool gaplessPlayback = false, |
| 58 | + bool isAntiAlias = false, |
| 59 | + FilterQuality filterQuality = FilterQuality.low, |
| 60 | + }) { |
| 61 | + return Image( |
| 62 | + image: this, |
| 63 | + frameBuilder: frameBuilder, |
| 64 | + loadingBuilder: loadingBuilder, |
| 65 | + errorBuilder: errorBuilder, |
| 66 | + semanticLabel: semanticLabel, |
| 67 | + excludeFromSemantics: excludeFromSemantics, |
| 68 | + width: width, |
| 69 | + height: height, |
| 70 | + color: color, |
| 71 | + colorBlendMode: colorBlendMode, |
| 72 | + fit: fit, |
| 73 | + alignment: alignment, |
| 74 | + repeat: repeat, |
| 75 | + centerSlice: centerSlice, |
| 76 | + matchTextDirection: matchTextDirection, |
| 77 | + gaplessPlayback: gaplessPlayback, |
| 78 | + isAntiAlias: isAntiAlias, |
| 79 | + filterQuality: filterQuality, |
| 80 | + ); |
| 81 | + } |
| 82 | + |
| 83 | + String get path => _assetName; |
| 84 | +} |
| 85 | + |
| 86 | +class SvgGenImage { |
| 87 | + const SvgGenImage(this._assetName); |
| 88 | + |
| 89 | + final String _assetName; |
| 90 | + |
| 91 | + SvgPicture svg({ |
| 92 | + bool matchTextDirection = false, |
| 93 | + AssetBundle bundle, |
| 94 | + String package, |
| 95 | + double width, |
| 96 | + double height, |
| 97 | + BoxFit fit = BoxFit.contain, |
| 98 | + AlignmentGeometry alignment = Alignment.center, |
| 99 | + bool allowDrawingOutsideViewBox = false, |
| 100 | + WidgetBuilder placeholderBuilder, |
| 101 | + Color color, |
| 102 | + BlendMode colorBlendMode = BlendMode.srcIn, |
| 103 | + String semanticsLabel, |
| 104 | + bool excludeFromSemantics = false, |
| 105 | + Clip clipBehavior = Clip.hardEdge, |
| 106 | + }) { |
| 107 | + return SvgPicture.asset( |
| 108 | + _assetName, |
| 109 | + matchTextDirection: matchTextDirection, |
| 110 | + ); |
| 111 | + } |
| 112 | + |
| 113 | + String get path => _assetName; |
| 114 | +} |
0 commit comments