File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -13,13 +13,13 @@ class SegmentPage extends StatefulWidget {
1313///
1414/// _SegmentState
1515class _SegmentState extends State <SegmentPage > {
16- final Map <int , Widget > _segmentChildren = const {
17- 0 : Text ('Child 1' ),
18- 1 : Text ('Child 2' ),
19- 2 : Text ('Child 3' ),
20- 3 : Text ('Child 4' ),
21- 4 : Text ('Child 5' ),
22- 5 : Text ('Child 6' ),
16+ final Map <int , Widget > _segmentChildren = {
17+ 0 : Container (padding : EdgeInsets . all ( 5 ), child : Text ('Child 1' ) ),
18+ 1 : Container (padding : EdgeInsets . all ( 5 ), child : Text ('Child 2' ) ),
19+ 2 : Container (padding : EdgeInsets . all ( 5 ), child : Text ('Child 3' ) ),
20+ 3 : Container (padding : EdgeInsets . all ( 5 ), child : Text ('Child 4' ) ),
21+ 4 : Container (padding : EdgeInsets . all ( 5 ), child : Text ('Child 5' ) ),
22+ 5 : Container (padding : EdgeInsets . all ( 5 ), child : Text ('Child 6' ) ),
2323 };
2424 int _currentValue = 0 ;
2525
You can’t perform that action at this time.
0 commit comments