feat : live stock module

This commit is contained in:
2025-05-19 16:17:01 +03:30
parent 905e407ccd
commit 7f72f2c70d
6 changed files with 63 additions and 16 deletions

View File

@@ -1,6 +1,6 @@
import 'package:flutter/material.dart';
import 'package:rasadyar_core/core.dart';
class ActionLogic extends GetxController with GetTickerProviderStateMixin {
late Rx<SlidableController> slidController;
bool showSlideHint = true;
@@ -15,11 +15,11 @@ class ActionLogic extends GetxController with GetTickerProviderStateMixin {
'خروج از سامانه',
];
List<String> headersIcons = [
Assets.vecProfileUserSvg,
Assets.vecCalendarSearchSvg,
Assets.vecDiagramSvg,
Assets.vecLogoutSvg,
List<Widget> headersIcons = [
Assets.vec.profileUserSvg.svg(),
Assets.vec.calendarSearchSvg.svg(),
Assets.vec.diagramSvg.svg(),
Assets.vec.logoutSvg.svg(),
];
RxList<bool> supervisionHistoryList = [false, false, false, false].obs;
@@ -46,7 +46,6 @@ class ActionLogic extends GetxController with GetTickerProviderStateMixin {
void onInit() {
super.onInit();
slidController = SlidableController(this).obs;
}
@override
@@ -69,9 +68,8 @@ class ActionLogic extends GetxController with GetTickerProviderStateMixin {
showSlideHint = !showSlideHint;
}
void updateSelectedIndex(int index) {
if(index == selectedIndex.value) {
if (index == selectedIndex.value) {
return;
}
previousIndex.value = selectedIndex.value;