fix : ui changes

This commit is contained in:
2025-09-30 09:56:22 +03:30
parent 21a8e34427
commit 0d946b500c
5 changed files with 69 additions and 15 deletions

View File

@@ -38,7 +38,7 @@ class InspectionPoultryScienceLogic extends GetxController {
super.onInit();
routesName.value = ['اقدام'].toList();
routesName.add(selectedSegmentIndex.value == 0 ? 'بازرسی' : 'بایگانی');
ever(selectedSegmentIndex, (callback) {
routesName.removeLast();
routesName.add(callback == 0 ? 'بازرسی' : 'بایگانی');

View File

@@ -23,7 +23,7 @@ class InspectionPoultrySciencePage extends GetView<InspectionPoultryScienceLogic
},
onSearchChanged: (data) => controller.setSearchValue(data),
backId: poultryFirstKey,
routes: controller.routesName,
routesWidget: ContainerBreadcrumb(rxRoutes: controller.routesName),
widgets: [
SizedBox(height: 50, child: segmentWidget()),
ObxValue((data) {
@@ -514,13 +514,23 @@ class InspectionPoultrySciencePage extends GetView<InspectionPoultryScienceLogic
itemBuilder: (context, index) => Container(
height: 100.h,
clipBehavior: Clip.hardEdge,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(8.r),
image: DecorationImage(
image: NetworkImage(item.image?[index] ?? ''),
fit: BoxFit.cover,
),
child: Image.network(
item.image?[index] ?? '',
loadingBuilder: (context, child, loadingProgress) {
if (loadingProgress == null) return child;
return Padding(padding: EdgeInsetsGeometry.all(80),
child: CircularProgressIndicator(
color: AppColor.blueDark,
value: loadingProgress.expectedTotalBytes != null
? loadingProgress.cumulativeBytesLoaded /
(loadingProgress.expectedTotalBytes ?? 1)
: null,
),
);
},
),
decoration: BoxDecoration(borderRadius: BorderRadius.circular(8.r)),
),
),
),

View File

@@ -50,7 +50,7 @@ class ChickenBasePage extends GetView<BaseLogic> {
final VoidCallback? onNotificationTap;
final List<String>? routes;
final Breadcrumb? routesWidget;
final Widget? routesWidget;
final List<Widget>? widgets;
final Widget? child;
final bool scrollable;