Skip to content

Commit 126ff26

Browse files
committed
Update: segment sample's segment style
1 parent 5e6eb73 commit 126ff26

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lib/sample/segment/segment_page.dart

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ class SegmentPage extends StatefulWidget {
1313
///
1414
/// _SegmentState
1515
class _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

0 commit comments

Comments
 (0)