fix: ui changes steward
This commit is contained in:
@@ -113,6 +113,7 @@ class GlassMorphismCardIcon extends StatelessWidget {
|
||||
this.iconWidth = 48,
|
||||
this.iconHeight = 48,
|
||||
this.iconColor,
|
||||
this.gradient,
|
||||
}) : assert((svgIcon != null) || (vecIcon != null), 'Either svgIcon or vecIcon must be provided');
|
||||
|
||||
final String title;
|
||||
@@ -123,6 +124,7 @@ class GlassMorphismCardIcon extends StatelessWidget {
|
||||
final VoidCallback? onTap;
|
||||
final Color titleColor;
|
||||
final TextStyle? titleStyle;
|
||||
final Gradient? gradient;
|
||||
|
||||
final Color borderColor;
|
||||
final Color backgroundColor;
|
||||
@@ -149,7 +151,6 @@ class GlassMorphismCardIcon extends StatelessWidget {
|
||||
onTap: onTap,
|
||||
child: Stack(
|
||||
children: [
|
||||
|
||||
Positioned.fill(
|
||||
child: Container(
|
||||
width: width.w,
|
||||
@@ -159,14 +160,6 @@ class GlassMorphismCardIcon extends StatelessWidget {
|
||||
color: Colors.white54,
|
||||
border: Border.all(width: 1, color: Colors.white),
|
||||
borderRadius: BorderRadius.circular(borderRadius),
|
||||
boxShadow: [
|
||||
BoxShadow(
|
||||
color: Colors.black12,
|
||||
blurRadius: 5,
|
||||
offset: Offset(10, 12),
|
||||
),
|
||||
],
|
||||
|
||||
),
|
||||
child: InkWell(
|
||||
onTap: onTap,
|
||||
@@ -180,7 +173,7 @@ class GlassMorphismCardIcon extends StatelessWidget {
|
||||
title,
|
||||
textAlign: TextAlign.center,
|
||||
style:
|
||||
titleStyle ??
|
||||
titleStyle ??
|
||||
AppFonts.yekan18Bold.copyWith(color: titleColor, height: 1.20),
|
||||
),
|
||||
),
|
||||
@@ -201,11 +194,13 @@ class GlassMorphismCardIcon extends StatelessWidget {
|
||||
topLeft: Radius.circular(borderRadius),
|
||||
topRight: Radius.circular(borderRadius),
|
||||
),
|
||||
gradient: LinearGradient(
|
||||
colors: [Color(0xff00b6bc), Color(0xff003ae0)],
|
||||
begin: Alignment.centerLeft,
|
||||
end: Alignment.centerRight,
|
||||
),
|
||||
gradient:
|
||||
gradient ??
|
||||
LinearGradient(
|
||||
colors: [Color(0xff00b6bc), Color(0xff003ae0)],
|
||||
begin: Alignment.centerLeft,
|
||||
end: Alignment.centerRight,
|
||||
),
|
||||
),
|
||||
child: Center(
|
||||
child: svgIcon != null
|
||||
@@ -224,10 +219,6 @@ class GlassMorphismCardIcon extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
|
||||
|
||||
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
@@ -9,18 +9,21 @@ class EmptyWidget extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return RefreshIndicator(
|
||||
onRefresh: onRefresh?? () async {},
|
||||
onRefresh: onRefresh ?? () async {},
|
||||
child: SingleChildScrollView(
|
||||
physics: AlwaysScrollableScrollPhysics(),
|
||||
child: SizedBox(
|
||||
height: MediaQuery.of(context).size.height/1.5,
|
||||
height: MediaQuery.of(context).size.height / 1.5,
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
children: [
|
||||
Row(),
|
||||
Assets.vec.emptySvg.svg(width: 170.w, height: 170.h),
|
||||
Text('داده ای یافت نشد!', style: AppFonts.yekan20.copyWith(color: AppColor.textColor)),
|
||||
Assets.vec.emptySvg.svg(height: 190.h),
|
||||
Text(
|
||||
'داده ای یافت نشد!',
|
||||
style: AppFonts.yekan20.copyWith(color: AppColor.textColor),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user