Skip to content

Commit dc7d941

Browse files
authored
Center tab alignment in badge lists screen (#147)
# 🚀 Pull Request ## Brief Description This pull requests resolves missing center alignment for the tabs inside the Badge Screen ## Linked Issues <!-- Link related issues with the format: Fixes #123, Resolves #456, Closes #1337 --> - Fixes #137 ## Screenshots <!-- Add screenshots if UI changes were made. Either new screens only or before/after --> | Old | New | |----------|----------| |![image](https://github.com/user-attachments/assets/230bcd2e-3694-4425-baa4-34c03b97863e)| ![image](https://github.com/user-attachments/assets/56bceab3-1e22-41c2-b140-2e68116d4d48) | ## GitHub Copilot Text This pull request introduces a small change to the `BadgeTabsView` class in the `badge_lists_screen.dart` file. The change adds a new property, `tabAlignment`, to the `TabBar` widget, setting it to `TabAlignment.center` to ensure the tabs are centrally aligned.
2 parents 83c8945 + fc5e778 commit dc7d941

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/presentation/challenges/badgeLists/screen/badge_lists_screen.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ class _BadgeTabsView extends StatelessWidget {
138138
children: [
139139
TabBar(
140140
isScrollable: true,
141+
tabAlignment: TabAlignment.center,
141142
tabs: categories
142143
.map((category) => Tab(text: _getCategoryName(category, l10n)))
143144
.toList(),

0 commit comments

Comments
 (0)