-
-
Notifications
You must be signed in to change notification settings - Fork 148
/
assets_camel_case.gen.dart
83 lines (77 loc) · 2.63 KB
/
assets_camel_case.gen.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
/// GENERATED CODE - DO NOT MODIFY BY HAND
/// *****************************************************
/// FlutterGen
/// *****************************************************
import 'package:flutter/widgets.dart';
class Assets {
Assets._();
static const AssetGenImage imagesChip1 =
AssetGenImage('assets/images/chip1.jpg');
static const AssetGenImage imagesChip2 =
AssetGenImage('assets/images/chip2.jpg');
static const AssetGenImage imagesChip3Chip3 =
AssetGenImage('assets/images/chip3/chip3.jpg');
static const AssetGenImage imagesChip4Chip4 =
AssetGenImage('assets/images/chip4/chip4.jpg');
static const String imagesIconsFuchsia = 'assets/images/icons/fuchsia.svg';
static const String imagesIconsKmm = 'assets/images/icons/kmm.svg';
static const String imagesIconsPaint = 'assets/images/icons/paint.svg';
static const AssetGenImage imagesLogo =
AssetGenImage('assets/images/logo.png');
static const AssetGenImage imagesProfileJpg =
AssetGenImage('assets/images/profile.jpg');
static const AssetGenImage imagesProfilePng =
AssetGenImage('assets/images/profile.png');
static const String jsonFruits = 'assets/json/fruits.json';
static const AssetGenImage picturesChip5 =
AssetGenImage('pictures/chip5.jpg');
}
class AssetGenImage extends AssetImage {
const AssetGenImage(String assetName)
: _assetName = assetName,
super(assetName);
final String _assetName;
Image image({
Key key,
ImageFrameBuilder frameBuilder,
ImageLoadingBuilder loadingBuilder,
ImageErrorWidgetBuilder errorBuilder,
String semanticLabel,
bool excludeFromSemantics = false,
double width,
double height,
Color color,
BlendMode colorBlendMode,
BoxFit fit,
AlignmentGeometry alignment = Alignment.center,
ImageRepeat repeat = ImageRepeat.noRepeat,
Rect centerSlice,
bool matchTextDirection = false,
bool gaplessPlayback = false,
bool isAntiAlias = false,
FilterQuality filterQuality = FilterQuality.low,
}) {
return Image(
key: key,
image: this,
frameBuilder: frameBuilder,
loadingBuilder: loadingBuilder,
errorBuilder: errorBuilder,
semanticLabel: semanticLabel,
excludeFromSemantics: excludeFromSemantics,
width: width,
height: height,
color: color,
colorBlendMode: colorBlendMode,
fit: fit,
alignment: alignment,
repeat: repeat,
centerSlice: centerSlice,
matchTextDirection: matchTextDirection,
gaplessPlayback: gaplessPlayback,
isAntiAlias: isAntiAlias,
filterQuality: filterQuality,
);
}
String get path => _assetName;
}