Skip to content

Commit

Permalink
made tabbar expand
Browse files Browse the repository at this point in the history
  • Loading branch information
Pebkac03 committed Jun 23, 2024
1 parent a0432bb commit a36105d
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions packages/overflow_tab_bar/lib/src/tab_bar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -117,16 +117,20 @@ class OverflowTabBarButton extends StatefulWidget {
class _OverflowTabBarButtonState extends State<OverflowTabBarButton> {
@override
Widget build(BuildContext context) {
return InkWell(
hoverColor: Colors.grey,
onTap: () => widget.controller.animateTo(widget.index),
child: Padding(
padding: widget.padding,
child: Text(
widget.text,
style: widget.textStyle,
textScaler: widget.textScaler,
maxLines: 1,
return Expanded(
child: InkWell(
hoverColor: Colors.grey,
onTap: () => widget.controller.animateTo(widget.index),
child: Padding(
padding: widget.padding,
child: Center(
child: Text(
widget.text,
style: widget.textStyle,
textScaler: widget.textScaler,
maxLines: 1,
),
),
),
),
);
Expand Down

0 comments on commit a36105d

Please sign in to comment.