Skip to content

Commit

Permalink
Merge pull request #22 from andreped:fix-tab-names
Browse files Browse the repository at this point in the history
Add newline between for longer table names
  • Loading branch information
andreped authored Jul 21, 2024
2 parents 79bbb9c + 9920ee6 commit d0d885c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/widgets/home.dart
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ class _ExerciseStoreHomePageState extends State<ExerciseStoreHomePage> with Sing
_pageController.jumpToPage(index);
},
tabs: const [
Tab(icon: Icon(Icons.add), text: 'Log Exercise'),
Tab(icon: Icon(Icons.table_chart), text: 'View Table'),
Tab(icon: Icon(Icons.show_chart), text: 'Visualize Data'),
Tab(icon: Icon(Icons.add), text: 'Log\nExercise'),
Tab(icon: Icon(Icons.table_chart), text: 'View\nTable'),
Tab(icon: Icon(Icons.show_chart), text: 'Visualize\nData'),
Tab(icon: Icon(Icons.calendar_today), text: 'Summary'),
],
),
Expand Down Expand Up @@ -260,9 +260,9 @@ class _ExerciseStoreHomePageState extends State<ExerciseStoreHomePage> with Sing
_pageController.jumpToPage(index); // Sync PageView with TabBar
},
items: const [
BottomNavigationBarItem(icon: Icon(Icons.add), label: 'Log Exercise'),
BottomNavigationBarItem(icon: Icon(Icons.table_chart), label: 'View Table'),
BottomNavigationBarItem(icon: Icon(Icons.show_chart), label: 'Visualize Data'),
BottomNavigationBarItem(icon: Icon(Icons.add), label: 'Log\nExercise'),
BottomNavigationBarItem(icon: Icon(Icons.table_chart), label: 'View\nTable'),
BottomNavigationBarItem(icon: Icon(Icons.show_chart), label: 'Visualize\nData'),
BottomNavigationBarItem(icon: Icon(Icons.calendar_today), label: 'Summary'),
],
),
Expand Down

0 comments on commit d0d885c

Please sign in to comment.