File tree 1 file changed +10
-3
lines changed
JetNews/app/src/main/java/com/example/jetnews/ui
1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -26,8 +26,10 @@ import androidx.ui.core.Text
26
26
import androidx.ui.core.dp
27
27
import androidx.ui.foundation.shape.corner.RoundedCornerShape
28
28
import androidx.ui.graphics.Color
29
+ import androidx.ui.layout.Arrangement
29
30
import androidx.ui.layout.Column
30
31
import androidx.ui.layout.Expanded
32
+ import androidx.ui.layout.ExpandedWidth
31
33
import androidx.ui.layout.Gravity
32
34
import androidx.ui.layout.HeightSpacer
33
35
import androidx.ui.layout.Row
@@ -140,12 +142,16 @@ private fun DrawerButton(
140
142
}
141
143
142
144
Surface (
143
- modifier = modifier wraps Spacing (left = 8 .dp, top = 8 .dp, right = 8 .dp),
145
+ modifier = modifier wraps Spacing (
146
+ left = 8 .dp,
147
+ top = 8 .dp,
148
+ right = 8 .dp
149
+ ),
144
150
color = backgroundColor,
145
151
shape = RoundedCornerShape (4 .dp)
146
152
) {
147
153
Button (onClick = action, style = TextButtonStyle ()) {
148
- Row {
154
+ Row (arrangement = Arrangement . Begin ) {
149
155
VectorImage (
150
156
modifier = Gravity .Center ,
151
157
id = icon,
@@ -156,7 +162,8 @@ private fun DrawerButton(
156
162
text = label,
157
163
style = (+ MaterialTheme .typography()).body2.copy(
158
164
color = textIconColor
159
- )
165
+ ),
166
+ modifier = ExpandedWidth
160
167
)
161
168
}
162
169
}
You can’t perform that action at this time.
0 commit comments