Skip to content

Commit fdaca87

Browse files
author
Andrei
committed
Added dto for image properties
1 parent 5dd1aea commit fdaca87

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

lib/image_properties.dart

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
import 'package:flutter/material.dart';
2+
3+
@immutable
4+
class ImageProperties {
5+
final String semanticLabel;
6+
final bool excludeFromSemantics;
7+
final double width;
8+
final double height;
9+
final Color color;
10+
final BlendMode colorBlendMode;
11+
final BoxFit fit;
12+
final AlignmentGeometry alignment;
13+
final ImageRepeat repeat;
14+
final Rect centerSlice;
15+
final bool matchTextDirection;
16+
final bool gaplessPlayback;
17+
final FilterQuality filterQuality;
18+
final double scale;
19+
20+
const ImageProperties(
21+
{this.scale = 1,
22+
this.semanticLabel,
23+
this.excludeFromSemantics = false,
24+
this.width,
25+
this.height,
26+
this.color,
27+
this.colorBlendMode,
28+
this.fit,
29+
this.alignment = Alignment.center,
30+
this.repeat = ImageRepeat.noRepeat,
31+
this.centerSlice,
32+
this.matchTextDirection = false,
33+
this.gaplessPlayback = false,
34+
this.filterQuality = FilterQuality.low});
35+
}

0 commit comments

Comments
 (0)