@ -4,6 +4,7 @@ import 'package:diplomaticquarterapp/core/viewModels/feedback/feedback_view_mode
import ' package:diplomaticquarterapp/core/viewModels/project_view_model.dart ' ;
import ' package:diplomaticquarterapp/pages/base/base_view.dart ' ;
import ' package:diplomaticquarterapp/pages/feedback/feedback-detail.dart ' ;
import ' package:diplomaticquarterapp/theme/colors.dart ' ;
import ' package:diplomaticquarterapp/uitl/app_toast.dart ' ;
import ' package:diplomaticquarterapp/uitl/translations_delegate_base.dart ' ;
import ' package:diplomaticquarterapp/uitl/utils_new.dart ' ;
@ -28,10 +29,10 @@ class _StatusFeedbackPageState extends State<StatusFeedbackPage> {
TextEditingController complainNumberController = TextEditingController ( ) ;
StatusType statusType = StatusType . ComplaintNumber ;
int selectedStatusIndex = 3 ;
ProjectViewModel projectViewModel ;
@ override
Widget build ( BuildContext context ) {
ProjectViewModel projectViewModel = Provider . of ( context ) ;
projectViewModel = Provider . of ( context ) ;
return BaseView < FeedbackViewModel > (
allowAny: true ,
onModelReady: ( model ) {
@ -202,38 +203,67 @@ class _StatusFeedbackPageState extends State<StatusFeedbackPage> {
shrinkWrap: isLogin ? false : true ,
physics: isLogin ? null : NeverScrollableScrollPhysics ( ) ,
itemBuilder: ( context , index ) = > InkWell (
onTap: ( ) { } ,
onTap: ( ) {
/ / sss
} ,
child: Container (
decoration: cardRadius ( 12 ) ,
margin: EdgeInsets . all ( 10 ) ,
child: Padding (
padding: const EdgeInsets . all ( 12.0 ) ,
child: Row (
mainAxisAlignment: MainAxisAlignment . spaceBetween ,
children: [
Column (
crossAxisAlignment: CrossAxisAlignment . start ,
children: [
Text ( isArabic ? cOCItemList [ index ] . statusAr : cOCItemList [ index ] . status , style: TextStyle ( fontSize: 14.0 , letterSpacing: - 0.56 , fontWeight: FontWeight . bold ) ) ,
Container (
margin: EdgeInsets . only ( top: 5.0 ) ,
child: Text ( cOCItemList [ index ] . formType . toString ( ) ,
style: TextStyle ( fontSize: 14 , fontWeight: FontWeight . w600 , fontFamily: isArabic ? ' Cairo ' : ' Poppins ' , color: Color ( 0xff2B353E ) , letterSpacing: - 0.48 , height: 18 / 12 ) ) ) ,
MyRichText ( TranslationBase . of ( context ) . number + " : " , cOCItemList [ index ] . itemID . toString ( ) , isArabic ) ,
Text ( cOCItemList [ index ] . cOCTitle ,
style: TextStyle ( fontSize: 14 , fontWeight: FontWeight . w600 , fontFamily: isArabic ? ' Cairo ' : ' Poppins ' , color: Color ( 0xff2B353E ) , letterSpacing: - 0.48 , height: 18 / 12 ) ) ,
] ,
) ,
Column (
crossAxisAlignment: CrossAxisAlignment . end ,
children: [
Text ( cOCItemList [ index ] . date . split ( " " ) [ 0 ] ,
style: TextStyle ( fontSize: 12 , fontWeight: FontWeight . w600 , fontFamily: isArabic ? ' Cairo ' : ' Poppins ' , color: Color ( 0xff2B353E ) , letterSpacing: - 0.48 ) ) ,
Text ( cOCItemList [ index ] . date . split ( " " ) [ 1 ] . substring ( 0 , 4 ) ,
style: TextStyle ( fontSize: 12 , fontWeight: FontWeight . w600 , fontFamily: isArabic ? ' Cairo ' : ' Poppins ' , color: Color ( 0xff2B353E ) , letterSpacing: - 0.48 ) ) ,
] ,
) ,
] ,
margin: EdgeInsets . only ( top: 12 ) ,
decoration: BoxDecoration (
color: ( cOCItemList [ index ] . statusId = = 7 | | cOCItemList [ index ] . statusId = = 8 ) ? CustomColors . accentColor: ( cOCItemList [ index ] . statusId = = 10 | | cOCItemList [ index ] . statusId = = 6 | | cOCItemList [ index ] . statusId = = 9 ) ? CustomColors . green: CustomColors . orange ,
borderRadius: BorderRadius . all (
Radius . circular ( 10.0 ) ,
) ,
boxShadow: [
BoxShadow (
color: Color ( 0xff000000 ) . withOpacity ( . 05 ) ,
blurRadius: 27 ,
offset: Offset ( 0 , - 3 ) ,
) ,
] ,
) ,
child: Container (
margin: EdgeInsets . only ( left: projectViewModel . isArabic ? 0 : 6 , right: projectViewModel . isArabic ? 6 : 0 ) ,
padding: EdgeInsets . symmetric ( vertical: 14 , horizontal: 12 ) ,
decoration: BoxDecoration (
color: Colors . white ,
border: Border . all ( color: Colors . white , width: 1 ) ,
borderRadius: BorderRadius . only (
bottomRight: projectViewModel . isArabic ? Radius . circular ( 0 ) : Radius . circular ( 10.0 ) ,
topRight: projectViewModel . isArabic ? Radius . circular ( 0 ) : Radius . circular ( 10.0 ) ,
bottomLeft: projectViewModel . isArabic ? Radius . circular ( 10.0 ) : Radius . circular ( 0 ) ,
topLeft: projectViewModel . isArabic ? Radius . circular ( 10.0 ) : Radius . circular ( 0 ) ,
) ,
) ,
child: Padding (
padding: const EdgeInsets . all ( 12.0 ) ,
child: Row (
mainAxisAlignment: MainAxisAlignment . spaceBetween ,
children: [
Column (
crossAxisAlignment: CrossAxisAlignment . start ,
children: [
Text ( isArabic ? cOCItemList [ index ] . statusAr : cOCItemList [ index ] . status , style: TextStyle ( fontSize: 14.0 , letterSpacing: - 0.56 , fontWeight: FontWeight . bold ) ) ,
Container (
margin: EdgeInsets . only ( top: 5.0 ) ,
child: Text ( cOCItemList [ index ] . formType . toString ( ) ,
style: TextStyle ( fontSize: 14 , fontWeight: FontWeight . w600 , fontFamily: isArabic ? ' Cairo ' : ' Poppins ' , color: Color ( 0xff2B353E ) , letterSpacing: - 0.48 , height: 18 / 12 ) ) ) ,
MyRichText ( TranslationBase . of ( context ) . number + " : " , cOCItemList [ index ] . itemID . toString ( ) , isArabic ) ,
Text ( cOCItemList [ index ] . cOCTitle ,
style: TextStyle ( fontSize: 14 , fontWeight: FontWeight . w600 , fontFamily: isArabic ? ' Cairo ' : ' Poppins ' , color: Color ( 0xff2B353E ) , letterSpacing: - 0.48 , height: 18 / 12 ) ) ,
] ,
) ,
Column (
crossAxisAlignment: CrossAxisAlignment . end ,
children: [
Text ( cOCItemList [ index ] . date . split ( " " ) [ 0 ] ,
style: TextStyle ( fontSize: 12 , fontWeight: FontWeight . w600 , fontFamily: isArabic ? ' Cairo ' : ' Poppins ' , color: Color ( 0xff2B353E ) , letterSpacing: - 0.48 ) ) ,
Text ( cOCItemList [ index ] . date . split ( " " ) [ 1 ] . substring ( 0 , 4 ) ,
style: TextStyle ( fontSize: 12 , fontWeight: FontWeight . w600 , fontFamily: isArabic ? ' Cairo ' : ' Poppins ' , color: Color ( 0xff2B353E ) , letterSpacing: - 0.48 ) ) ,
] ,
) ,
] ,
) ,
) ,
) ,
) ,