File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
storybook/lib/stories/tab Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ class OptimusTab extends StatelessWidget {
36
36
37
37
return Container (
38
38
padding: EdgeInsets .symmetric (horizontal: tokens.spacing150),
39
- height: 48 ,
39
+ height: tokens.sizing600 ,
40
40
constraints: BoxConstraints (maxWidth: maxWidth ?? double .infinity),
41
41
child: Row (
42
42
mainAxisSize: MainAxisSize .min,
@@ -46,7 +46,7 @@ class OptimusTab extends StatelessWidget {
46
46
padding: EdgeInsets .only (right: tokens.spacing50),
47
47
child: Icon (icon, size: tokens.sizing200),
48
48
),
49
- Text (label, overflow: TextOverflow .ellipsis),
49
+ Flexible (child : Text (label, overflow: TextOverflow .ellipsis) ),
50
50
if (badge case final badge? )
51
51
Padding (
52
52
padding: EdgeInsets .only (left: tokens.spacing50),
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ final Story tabsStory = Story(
22
22
tabs: _items
23
23
.map (
24
24
(i) => OptimusTab (
25
- label: 'Tab ${i + 1 }' ,
25
+ label: i.isEven ? 'Tab with long name' : 'Tab ${i + 1 }' ,
26
26
icon: i.isOdd ? icon : null ,
27
27
badge: i.isOdd ? badge : null ,
28
28
maxWidth: _tabBarWidth / _items.length,
You can’t perform that action at this time.
0 commit comments