@ -129,7 +129,7 @@ class _TangheemDetailScreenState extends State<TangheemDetailScreen> {
) ,
) ,
SizedBox ( height: 8 ) ,
SizedBox ( height: 8 ) ,
Text (
Text (
" هنا نضع \" تعريف بالاستفهام وتداخل الأساليب \ "" ,
_ayatTangheemTypeMappedFirstData . tangheemTypeDescription ? ? "" ,
style: TextStyle ( fontSize: 14 , color: ColorConsts . textGrey , height: 1 ) ,
style: TextStyle ( fontSize: 14 , color: ColorConsts . textGrey , height: 1 ) ,
) ,
) ,
SizedBox ( height: 8 ) ,
SizedBox ( height: 8 ) ,
@ -150,115 +150,127 @@ class _TangheemDetailScreenState extends State<TangheemDetailScreen> {
child: RepaintBoundary (
child: RepaintBoundary (
key: _globalKey ,
key: _globalKey ,
child: Material (
child: Material (
color: Colors . white ,
color: Colors . white ,
child: ListView . builder (
child: ListView . builder (
physics: NeverScrollableScrollPhysics ( ) ,
physics: NeverScrollableScrollPhysics ( ) ,
shrinkWrap: true ,
shrinkWrap: true ,
itemCount: ayatTangheemTypeMappedDataList . length > 5 ? 5 : ayatTangheemTypeMappedDataList . length ,
itemCount: ayatTangheemTypeMappedDataList . length > 5 ? 5 : ayatTangheemTypeMappedDataList . length ,
itemBuilder: ( context , index ) {
itemBuilder: ( context , index ) {
var _ayatTangheemTypeMappedData = ayatTangheemTypeMappedDataList [ index ] ;
var _ayatTangheemTypeMappedData = ayatTangheemTypeMappedDataList [ index ] ;
List < TangheemProperty > _tangheemInsideTableTrueList = [ ] ;
List < TangheemProperty > _tangheemInsideTableTrueList = [ ] ;
List < TangheemProperty > _tangheemInsideTableValueList = [ ] ;
List < TangheemProperty > _tangheemInsideTableValueList = [ ] ;
List < TangheemProperty > _tangheemInsideTableEmptyList = [ ] ;
List < TangheemProperty > _tangheemInsideTableEmptyList = [ ] ;
List < String > _tangheemWords = [ ] ;
List < String > _tangheemWords = [ ] ;
_tangheemWords . add ( _ayatTangheemTypeMappedData . highlightText ? ? " " ) ;
_tangheemWords . add ( _ayatTangheemTypeMappedData . highlightText ? ? " " ) ;
_tangheemInsideTableTrueList =
_tangheemInsideTableTrueList =
_ayatTangheemTypeMappedData ? . property ? . where ( ( element ) = > ( element . isInsideTable ) & & ( element . propertyValue ? ? " " ) . isNotEmpty ) ? . toList ( ) ? ? [ ] ;
_ayatTangheemTypeMappedData ? . property ? . where ( ( element ) = > ( element . isInsideTable ) & & ( element . propertyValue ? ? " " ) . isNotEmpty ) ? . toList ( ) ? ? [ ] ;
_tangheemInsideTableValueList =
_tangheemInsideTableValueList =
_ayatTangheemTypeMappedData ? . property ? . where ( ( element ) = > ( ! element . isInsideTable ) & & ( element . propertyValue ? ? " " ) . isNotEmpty ) ? . toList ( ) ? ? [ ] ;
_ayatTangheemTypeMappedData ? . property ? . where ( ( element ) = > ( ! element . isInsideTable ) & & ( element . propertyValue ? ? " " ) . isNotEmpty ) ? . toList ( ) ? ? [ ] ;
return ListView (
var _tempTangheemIndexWord = " " ;
physics: NeverScrollableScrollPhysics ( ) ,
if ( ayatTangheemTypeMappedDataList . length = = 1 ) {
shrinkWrap: true ,
_tempTangheemIndexWord = " " ;
padding: EdgeInsets . all ( 4 ) ,
} else {
children: [
_tempTangheemIndexWord = getArabicIndexWord ( index ) ;
Row (
}
children: [
Text (
return ListView (
" جمله ${ _ayatTangheemTypeMappedData . tangheemTypeName } ${ getArabicIndexWord ( index ) } " ,
physics: NeverScrollableScrollPhysics ( ) ,
style: TextStyle ( fontWeight: FontWeight . bold , color: Colors . white , backgroundColor: ColorConsts . primaryBlue ) ,
shrinkWrap: true ,
) ,
padding: EdgeInsets . all ( 4 ) ,
Expanded (
children: [
child: Container ( height: 2 , color: ColorConsts . primaryBlue ) ,
Row (
) ,
children: [
] ,
Text (
) ,
" جمله ${ _ayatTangheemTypeMappedData . tangheemTypeName } $ _tempTangheemIndexWord " ,
SizedBox ( height: 8 ) ,
style: TextStyle ( fontWeight: FontWeight . bold , color: Colors . white , backgroundColor: ColorConsts . primaryBlue ) ,
TextHighLightWidget (
) ,
text: _ayatTangheemTypeMappedData . reverseAyatNumber ( ) ? ? " " ,
Expanded (
valueColor: ColorConsts . primaryBlue ,
child: Container ( height: 2 , color: ColorConsts . primaryBlue ) ,
highlights: _tangheemWords ,
highLightFontSize: fontSize ,
style: TextStyle (
fontFamily: " UthmanicHafs " ,
fontSize: fontSize ,
fontWeight: FontWeight . bold ,
) ,
) ,
] ,
) ,
SizedBox ( height: 8 ) ,
TextHighLightWidget (
text: _ayatTangheemTypeMappedData . reverseAyatNumber ( ) ? ? " " ,
valueColor: ColorConsts . primaryBlue ,
highlights: _tangheemWords ,
highLightFontSize: fontSize ,
style: TextStyle (
fontFamily: " UthmanicHafs " ,
fontSize: fontSize ,
fontWeight: FontWeight . bold ,
) ,
) ,
SizedBox ( height: 16 ) ,
) ,
ListView . separated (
SizedBox ( height: 16 ) ,
itemCount: _tangheemInsideTableValueList . length ,
ListView . separated (
physics: NeverScrollableScrollPhysics ( ) ,
itemCount: _tangheemInsideTableValueList . length ,
shrinkWrap: true ,
physics: NeverScrollableScrollPhysics ( ) ,
separatorBuilder: ( context , index ) {
shrinkWrap: true ,
return Divider (
separatorBuilder: ( context , index ) {
color: Colors . white ,
return Divider (
height: 1 ,
color: Colors . white ,
thickness: 0 ,
height: 1 ,
) ;
thickness: 0 ,
} ,
) ;
itemBuilder: ( context , index ) {
} ,
return Row (
itemBuilder: ( context , index ) {
children: [
return Row (
Expanded (
children: [
child: Container (
Expanded (
height: 40 ,
child: Container (
padding: EdgeInsets . only ( left: 4 , right: 8 ) ,
height: 40 ,
alignment: Alignment . centerRight ,
padding: EdgeInsets . only ( left: 4 , right: 8 ) ,
child: Text (
alignment: Alignment . centerRight ,
_tangheemInsideTableValueList [ index ] . propertyText ,
child: Text (
style: TextStyle ( fontWeight: FontWeight . bold , color: ColorConsts . secondaryOrange ) ,
_tangheemInsideTableValueList [ index ] . propertyText ,
) ,
style: TextStyle ( fontWeight: FontWeight . bold , color: ColorConsts . secondaryOrange ) ,
color: ColorConsts . secondaryWhite ,
) ,
) ,
color: ColorConsts . secondaryWhite ,
) ,
) ,
SizedBox ( width: 8 ) ,
) ,
Expanded (
SizedBox ( width: 8 ) ,
child: Container (
Expanded (
height: 40 ,
child: Container (
padding: EdgeInsets . only ( left: 4 , right: 8 ) ,
height: 40 ,
alignment: Alignment . centerRight ,
padding: EdgeInsets . only ( left: 4 , right: 8 ) ,
child: Text (
alignment: Alignment . centerRight ,
_tangheemInsideTableValueList [ index ] . propertyValue ,
child: Text (
style: TextStyle ( color: ColorConsts . primaryBlack ) ,
_tangheemInsideTableValueList [ index ] . propertyValue ,
style: TextStyle (
color: Color (
Utils . stringToHex ( _tangheemInsideTableValueList [ index ] . textColor ) ,
) ,
) ,
) ,
color: ColorConsts . secondaryWhite ,
) ,
) ,
)
color: ColorConsts . secondaryWhite ,
] ,
) ,
) ;
)
} ) ,
if ( _tangheemInsideTableTrueList . isNotEmpty )
Container (
color: ColorConsts . primaryBlue ,
margin: EdgeInsets . only ( top: 8 , bottom: 8 ) ,
padding: EdgeInsets . all ( 8 ) ,
child: Column (
children: [
Text (
_ayatTangheemTypeMappedData . tangheemTypeName ? ? " " ,
style: TextStyle ( fontWeight: FontWeight . bold , color: Colors . white ) ,
) ,
SizedBox ( height: 8 ) ,
tangheemPropertyView ( _tangheemInsideTableTrueList )
] ,
] ,
) ,
) ;
} ) ,
if ( _tangheemInsideTableTrueList . isNotEmpty )
Container (
color: ColorConsts . primaryBlue ,
margin: EdgeInsets . only ( top: 8 , bottom: 8 ) ,
padding: EdgeInsets . all ( 8 ) ,
child: Column (
children: [
Text (
_ayatTangheemTypeMappedData . tangheemTypeName ? ? " " ,
style: TextStyle ( fontWeight: FontWeight . bold , color: Colors . white ) ,
) ,
SizedBox ( height: 8 ) ,
tangheemPropertyView ( _tangheemInsideTableTrueList )
] ,
) ,
) ,
tangheemPropertyView ( _tangheemInsideTableEmptyList )
) ,
] ,
tangheemPropertyView ( _tangheemInsideTableEmptyList )
) ;
] ,
} ) ) ,
) ;
} ) ,
) ,
) ,
) ,
) ,
) ,
) ,
) ,
@ -346,7 +358,12 @@ class _TangheemDetailScreenState extends State<TangheemDetailScreen> {
SizedBox ( height: 4 ) ,
SizedBox ( height: 4 ) ,
Text (
Text (
tangheemPropertyList [ index ] . propertyValue ? ? " " ,
tangheemPropertyList [ index ] . propertyValue ? ? " " ,
style: TextStyle ( fontSize: 12 , color: ColorConsts . secondaryPink ) ,
style: TextStyle (
fontSize: 12 ,
color: Color (
Utils . stringToHex ( tangheemPropertyList [ index ] . textColor ) ,
) ,
) ,
) ,
) ,
] ,
] ,
) ,
) ,