Skip to content

Commit df4b972

Browse files
committed
Remove unnecessary Container.
1 parent 3581615 commit df4b972

File tree

1 file changed

+18
-20
lines changed

1 file changed

+18
-20
lines changed

patterns/adapter/flutter_adapter/client_app/widgets/text_property_widget.dart

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -20,26 +20,24 @@ class TextPropertyWidget extends StatelessWidget {
2020
return SubscriberWidget<RepaintEvent>(
2121
observer: app.events,
2222
builder: (context, event) {
23-
return Container(
24-
child: Row(
25-
mainAxisAlignment: MainAxisAlignment.center,
26-
children: [
27-
SliderWidget(
28-
current: app.textColoring.size,
29-
max: app.textColoring.maxTextSize,
30-
onChange: (newVal) {
31-
app.textColoring.size = newVal;
32-
},
33-
),
34-
ColorButtonsWidget(
35-
currentColor: app.textColoring.color,
36-
colors: app.colorRules.colors,
37-
onColorSelect: (color) {
38-
app.textColoring.color = color;
39-
},
40-
),
41-
],
42-
),
23+
return Row(
24+
mainAxisAlignment: MainAxisAlignment.center,
25+
children: [
26+
SliderWidget(
27+
current: app.textColoring.size,
28+
max: app.textColoring.maxTextSize,
29+
onChange: (newVal) {
30+
app.textColoring.size = newVal;
31+
},
32+
),
33+
ColorButtonsWidget(
34+
currentColor: app.textColoring.color,
35+
colors: app.colorRules.colors,
36+
onColorSelect: (color) {
37+
app.textColoring.color = color;
38+
},
39+
),
40+
],
4341
);
4442
},
4543
);

0 commit comments

Comments
 (0)