@@ -85,7 +85,7 @@ class Children {
8585 const spacer = this . childrenSpaces [ index ] ;
8686 if ( spacer > 0 ) {
8787 if ( withStyledWidget ) {
88- widgets . push ( `s( ${ spacer } ) ` ) ;
88+ widgets . push ( `${ spacer } .spacer ` ) ;
8989 } else {
9090 widgets . push ( `Spacer(flex: ${ spacer } )` ) ;
9191 }
@@ -98,27 +98,27 @@ class Children {
9898 let set = new Set ( dist ) ;
9999 if ( set . size == 1 ) {
100100 if ( set . getByIdx ( 0 ) == 0 ) return ;
101- this . columnOrRowMainAlignment = withSw ? '.mainSpaceEvenly ' : 'mainAxisAlignment: MainAxisAlignment.spaceEvenly,' ;
101+ this . columnOrRowMainAlignment = withSw ? '.mSpaceEvenly ' : 'mainAxisAlignment: MainAxisAlignment.spaceEvenly,' ;
102102 return ;
103103 }
104104 set = new Set ( dist . slice ( 1 , dist . length - 1 ) ) ; // remove first and last item of Set
105105 if ( dist [ 0 ] == 0 && dist [ dist . length - 1 ] == 0 && set . size == 1 ) {
106- this . columnOrRowMainAlignment = withSw ? '.mainSpaceBetween ' : 'mainAxisAlignment: MainAxisAlignment.spaceBetween,' ;
106+ this . columnOrRowMainAlignment = withSw ? '.mSpaceBetween ' : 'mainAxisAlignment: MainAxisAlignment.spaceBetween,' ;
107107 return ;
108108 }
109109 let first = dist [ 0 ] ;
110110 if ( first != 0 && dist [ dist . length - 1 ] == first && set . size == 1 && set . getByIdx ( 0 ) == first * 2 ) {
111- this . columnOrRowMainAlignment = withSw ? '.mainSpaceAround ' : 'mainAxisAlignment: MainAxisAlignment.spaceAround,' ;
111+ this . columnOrRowMainAlignment = withSw ? '.mSpaceAround ' : 'mainAxisAlignment: MainAxisAlignment.spaceAround,' ;
112112 return ;
113113 }
114114 let last = dist [ dist . length - 1 ] ;
115115 if ( first != 0 && last != 0 && first == last && set . size == 1 && set . getByIdx ( 0 ) == 0 ) {
116- this . columnOrRowMainAlignment = withSw ? '.mainCenter ' : 'mainAxisAlignment: MainAxisAlignment.center,' ;
116+ this . columnOrRowMainAlignment = withSw ? '.mCenter ' : 'mainAxisAlignment: MainAxisAlignment.center,' ;
117117 return ;
118118 }
119119 set = new Set ( dist . slice ( 1 , dist . length ) ) ; // remove first and last item of Set
120120 if ( first != 0 && set . size == 1 && set . getByIdx ( 0 ) == 0 ) {
121- this . columnOrRowMainAlignment = withSw ? '.mainEnd ' : 'mainAxisAlignment: MainAxisAlignment.end,' ;
121+ this . columnOrRowMainAlignment = withSw ? '.mEnd ' : 'mainAxisAlignment: MainAxisAlignment.end,' ;
122122 return ;
123123 }
124124 }
@@ -166,11 +166,11 @@ class Children {
166166 if ( center >= end && center >= start ) return ;
167167 if ( end >= center && end >= start ) {
168168 this . isEnd = true ;
169- this . columnOrRowCrossAlignment = withSw ? '.crossEnd ' : 'crossAxisAlignment: CrossAxisAlignment.end,' ;
169+ this . columnOrRowCrossAlignment = withSw ? '.cEnd ' : 'crossAxisAlignment: CrossAxisAlignment.end,' ;
170170 }
171171 if ( start >= center && start >= end ) {
172172 this . isStart = true ;
173- this . columnOrRowCrossAlignment = withSw ? '.crossStart ' : 'crossAxisAlignment: CrossAxisAlignment.start,' ;
173+ this . columnOrRowCrossAlignment = withSw ? '.cStart ' : 'crossAxisAlignment: CrossAxisAlignment.start,' ;
174174 }
175175 }
176176
0 commit comments