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