fix : title and pic home widget
This commit is contained in:
BIN
assets/images/live_chicken.jpg
Normal file
BIN
assets/images/live_chicken.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 110 KiB |
@@ -14,7 +14,8 @@ class PoultryScienceHomeLogic extends GetxController {
|
||||
labelTitle: 'کل فارم ها',
|
||||
isLoading: true,
|
||||
labelVecIcon: Assets.vec.cubeScanSvg.path,
|
||||
blendMode: BlendMode.dst,
|
||||
iconColor: AppColor.blueFlashing,
|
||||
blendMode: BlendMode.srcOut,
|
||||
valueBgColor: Colors.white,
|
||||
labelGradient: LinearGradient(
|
||||
begin: Alignment.topCenter,
|
||||
|
||||
@@ -42,16 +42,12 @@ class PoultryScienceHomePage extends GetView<PoultryScienceHomeLogic> {
|
||||
|
||||
widelyWidget(),
|
||||
SizedBox(height: 20),
|
||||
|
||||
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Padding mainItemWidget() {
|
||||
return Padding(
|
||||
padding: const EdgeInsets.all(8.0),
|
||||
@@ -106,18 +102,19 @@ class PoultryScienceHomePage extends GetView<PoultryScienceHomeLogic> {
|
||||
width: 40,
|
||||
height: 40,
|
||||
decoration: ShapeDecoration(
|
||||
image: DecorationImage(
|
||||
image: AssetImage(Assets.images.chicken.path),
|
||||
fit: BoxFit.cover,
|
||||
),
|
||||
shape: RoundedRectangleBorder(
|
||||
side: BorderSide(width: 0.25, color: const Color(0xFFB0B0B0)),
|
||||
borderRadius: BorderRadius.circular(4),
|
||||
),
|
||||
),
|
||||
child: Assets.images.liveChicken.image(
|
||||
width: 40.w,
|
||||
height: 40.h,
|
||||
fit: BoxFit.cover,
|
||||
),
|
||||
),
|
||||
Text(
|
||||
'مرغ گرم',
|
||||
'فارم ها',
|
||||
textAlign: TextAlign.right,
|
||||
style: AppFonts.yekan16.copyWith(color: AppColor.darkGreyDarkActive),
|
||||
),
|
||||
|
||||
@@ -430,6 +430,9 @@ class $AssetsImagesGen {
|
||||
/// File path: assets/images/inner_splash.webp
|
||||
AssetGenImage get innerSplash => const AssetGenImage('assets/images/inner_splash.webp');
|
||||
|
||||
/// File path: assets/images/live_chicken.jpg
|
||||
AssetGenImage get liveChicken => const AssetGenImage('assets/images/live_chicken.jpg');
|
||||
|
||||
/// File path: assets/images/outter_splash.webp
|
||||
AssetGenImage get outterSplash => const AssetGenImage('assets/images/outter_splash.webp');
|
||||
|
||||
@@ -443,7 +446,15 @@ class $AssetsImagesGen {
|
||||
AssetGenImage get selectRole => const AssetGenImage('assets/images/select_role.webp');
|
||||
|
||||
/// List of all assets
|
||||
List<AssetGenImage> get values => [chicken, innerSplash, outterSplash, placeHolder, poultryAction, selectRole];
|
||||
List<AssetGenImage> get values => [
|
||||
chicken,
|
||||
innerSplash,
|
||||
liveChicken,
|
||||
outterSplash,
|
||||
placeHolder,
|
||||
poultryAction,
|
||||
selectRole,
|
||||
];
|
||||
}
|
||||
|
||||
class $AssetsLogosGen {
|
||||
|
||||
@@ -54,7 +54,7 @@ class InformationTagData {
|
||||
this.height,
|
||||
this.heightIcon,
|
||||
this.widthIcon,
|
||||
this.blendMode
|
||||
this.blendMode,
|
||||
}) : assert(
|
||||
(labelVecIcon != null) ^ (labelSvgIcon != null),
|
||||
'Either labelVecIcon or labelSvgIcon must be provided, but not both.',
|
||||
@@ -92,7 +92,7 @@ class InformationTagData {
|
||||
Color? unitColor,
|
||||
int? width,
|
||||
int? height,
|
||||
BlendMode? blendMode
|
||||
BlendMode? blendMode,
|
||||
}) {
|
||||
return InformationTagData(
|
||||
labelVecIcon: labelVecIcon ?? this.labelVecIcon,
|
||||
@@ -150,12 +150,15 @@ class InformationTag extends StatelessWidget {
|
||||
spacing: 4,
|
||||
children: [
|
||||
data.labelVecIcon != null
|
||||
? SvgGenImage.vec(data.labelVecIcon!).svg(
|
||||
width: (data.widthIcon ?? 24).w,
|
||||
height: (data.heightIcon ?? 24).h,
|
||||
colorFilter: ColorFilter.mode(
|
||||
data.iconColor ?? AppColor.mediumGreyDarkActive,
|
||||
data.blendMode?? BlendMode.srcIn,
|
||||
? ClipRRect(
|
||||
borderRadius: BorderRadius.circular(8),
|
||||
child: SvgGenImage.vec(data.labelVecIcon!).svg(
|
||||
width: (data.widthIcon ?? 24).w,
|
||||
height: (data.heightIcon ?? 24).h,
|
||||
colorFilter: ColorFilter.mode(
|
||||
data.iconColor ?? AppColor.mediumGreyDarkActive,
|
||||
data.blendMode ?? BlendMode.srcIn,
|
||||
),
|
||||
),
|
||||
)
|
||||
: SvgGenImage(data.labelSvgIcon!).svg(
|
||||
@@ -163,7 +166,7 @@ class InformationTag extends StatelessWidget {
|
||||
height: (data.heightIcon ?? 24).h,
|
||||
colorFilter: ColorFilter.mode(
|
||||
data.iconColor ?? AppColor.mediumGreyDarkActive,
|
||||
data.blendMode?? BlendMode.srcIn,
|
||||
data.blendMode ?? BlendMode.srcIn,
|
||||
),
|
||||
),
|
||||
Visibility(
|
||||
|
||||
Reference in New Issue
Block a user