Showing
2 changed files
with
22 additions
and
17 deletions
@@ -164,23 +164,27 @@ class Bullet extends StatelessWidget { | @@ -164,23 +164,27 @@ class Bullet extends StatelessWidget { | ||
164 | @override | 164 | @override |
165 | Widget build(Context context) { | 165 | Widget build(Context context) { |
166 | return Container( | 166 | return Container( |
167 | - margin: margin, | ||
168 | - padding: padding, | ||
169 | - child: Row( | ||
170 | - crossAxisAlignment: CrossAxisAlignment.start, | ||
171 | - children: <Widget>[ | ||
172 | - Container( | ||
173 | - width: bulletSize, | ||
174 | - height: bulletSize, | ||
175 | - margin: bulletMargin, | ||
176 | - decoration: | ||
177 | - BoxDecoration(color: bulletColor, shape: bulletShape), | ||
178 | - ), | ||
179 | - Expanded( | ||
180 | - child: Text(text, | ||
181 | - textAlign: textAlign, | ||
182 | - style: Theme.of(context).bulletStyle)) | ||
183 | - ])); | 167 | + margin: margin, |
168 | + padding: padding, | ||
169 | + child: Row( | ||
170 | + crossAxisAlignment: CrossAxisAlignment.start, | ||
171 | + children: <Widget>[ | ||
172 | + Container( | ||
173 | + width: bulletSize, | ||
174 | + height: bulletSize, | ||
175 | + margin: bulletMargin, | ||
176 | + decoration: BoxDecoration(color: bulletColor, shape: bulletShape), | ||
177 | + ), | ||
178 | + Expanded( | ||
179 | + child: Text( | ||
180 | + text, | ||
181 | + textAlign: textAlign, | ||
182 | + style: Theme.of(context).bulletStyle.merge(style), | ||
183 | + ), | ||
184 | + ) | ||
185 | + ], | ||
186 | + ), | ||
187 | + ); | ||
184 | } | 188 | } |
185 | } | 189 | } |
186 | 190 |
-
Please register or login to post a comment