Refactor SVG icons and update asset paths and fix RoutinesView issues

This commit is contained in:
mohammad
2025-04-06 11:28:59 +03:00
parent 64f61a6c3d
commit ad922577da
8 changed files with 9 additions and 55 deletions

View File

@ -90,6 +90,7 @@ class _RoutinesViewState extends State<RoutinesView> {
],
),
),
const SizedBox(height: 50),
],
),
)

View File

@ -117,7 +117,7 @@ class _FetchRoutineScenesState extends State<FetchRoutineScenesAutomation>
fontWeight: FontWeight.bold,
),
),
const SizedBox(height: 5),
const SizedBox(height: 3),
if (state.automations.isEmpty)
Expanded(
child: Text(
@ -130,8 +130,8 @@ class _FetchRoutineScenesState extends State<FetchRoutineScenesAutomation>
if (state.automations.isNotEmpty)
ConstrainedBox(
constraints: BoxConstraints(
maxHeight: isSmallScreenSize(context) ? 185 : 192,
maxWidth: MediaQuery.sizeOf(context).width * 0.7),
maxHeight: isSmallScreenSize(context) ? 190 : 195,
),
child: ListView.builder(
scrollDirection: Axis.horizontal,
itemCount: state.automations.length,

View File

@ -106,10 +106,10 @@ class _RoutineViewCardState extends State<RoutineViewCard> {
if (widget.isFromScenes ?? false)
InkWell(
onTap: _handleSceneTap,
child: SvgPicture.asset(
child: Image.asset(
_showTemporaryCheck
? Assets.scenesPlayIconCheck
: Assets.scenesPlayIcon,
? Assets.scenesPlayIcon
: Assets.scenesPlayIconCheck,
fit: BoxFit.contain,
),
)

View File

@ -408,7 +408,7 @@ class Assets {
static const String spaceLinkIcon = 'assets/icons/space_link_icon.svg';
static const String successIcon = 'assets/icons/success_icon.svg';
static const String spaceLocationIcon = 'assets/icons/spaseLocationIcon.svg';
static const String scenesPlayIcon = 'assets/icons/scenesPlayIcon.svg';
static const String scenesPlayIcon = 'assets/icons/scenesPlayIcon.png';
static const String scenesPlayIconCheck =
'assets/icons/scenesPlayIconCheck.svg';
'assets/icons/scenesPlayIconCheck.png';
}