feat : request tagging and fix chips and fix overflow module in auht

This commit is contained in:
2025-05-24 15:12:40 +03:30
parent 10cb9d1f52
commit 276c8dd1fe
12 changed files with 450 additions and 264 deletions

View File

@@ -23,7 +23,7 @@ class CardIcon extends StatelessWidget {
side: const BorderSide(color: AppColor.blueNormal, width: 1),
),
child: Container(
padding: const EdgeInsets.all(16),
padding: const EdgeInsets.all(8),
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(8),
color: Colors.white,

View File

@@ -1,3 +1,4 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:rasadyar_core/core.dart';
@@ -55,7 +56,7 @@ class RFilterChips extends StatelessWidget {
required this.index,
required this.onTap,
this.selectedColor = AppColor.blueNormal,
this.unSelectedColor = AppColor.whiteGreyNormal,
this.unSelectedColor = AppColor.whiteGreyDark,
});
final bool isSelected;
@@ -66,7 +67,7 @@ class RFilterChips extends StatelessWidget {
final Color unSelectedColor;
@override
Widget build(BuildContext context) {
/* Widget build(BuildContext context) {
return FilterChip(
labelStyle: isSelected
? AppFonts.yekan10.copyWith(color: AppColor.mediumGreyDarkActive)
@@ -74,12 +75,38 @@ class RFilterChips extends StatelessWidget {
label: Text(
title,
textAlign: TextAlign.center),
deleteIconColor: Colors.red,
selected: isSelected,
showCheckmark: false, // مخفی‌کردن چک‌مارک پیش‌فرض
avatar: isSelected
? Icon(
Icons.star, // آیکون دلخواه به‌جای چک‌مارک
size: 18,
color: Colors.orange,
)
: null,
selectedColor: selectedColor,
onSelected: (bool selected) {
onTap.call(index);
},
);
}*/
Widget build(BuildContext context) {
return RawChip(
label: Text(title),
labelStyle: isSelected
? AppFonts.yekan10.copyWith(color: AppColor.mediumGreyDarkActive)
: AppFonts.yekan10,
selected: isSelected,
onSelected: (bool selected) => onTap(index),
backgroundColor: Colors.grey[200],
selectedColor: selectedColor,
showCheckmark: false,
shape: RoundedRectangleBorder(
borderRadius: const BorderRadius.all(Radius.circular(8.0)),
side: BorderSide(width: 1, color: isSelected? selectedColor :unSelectedColor),
),
deleteIcon: Icon(CupertinoIcons.clear_circled),
onDeleted: isSelected ? () => onTap(index) : null,
);
}
}