Favourites
This commit is contained in:
parent
6a84a9bef0
commit
1747ab0245
23 changed files with 469 additions and 67 deletions
26
lib/features/core/data/constants/const_media.dart
Normal file
26
lib/features/core/data/constants/const_media.dart
Normal file
|
@ -0,0 +1,26 @@
|
|||
import 'package:flutter/widgets.dart';
|
||||
import 'package:flutter_svg/flutter_svg.dart';
|
||||
|
||||
abstract class ConstMedia {
|
||||
static const String favStarFilled = 'assets/icons/star_filled.svg';
|
||||
static const String favStarOutline = 'assets/icons/star_outline.svg';
|
||||
|
||||
static SvgPicture buildIcon(
|
||||
String iconReference, {
|
||||
Color? color,
|
||||
double? width,
|
||||
double? height,
|
||||
BoxFit fit = BoxFit.contain,
|
||||
Clip clipBehavior = Clip.hardEdge,
|
||||
Alignment alignment = Alignment.center,
|
||||
}) =>
|
||||
SvgPicture.asset(
|
||||
iconReference,
|
||||
color: color,
|
||||
width: width,
|
||||
height: height,
|
||||
fit: fit,
|
||||
clipBehavior: clipBehavior,
|
||||
alignment: alignment,
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue