fix: tabbar alignment

This commit is contained in:
guozhigq
2023-12-16 21:02:16 +08:00
parent b4b64d9864
commit 172ea0fbb6
2 changed files with 2 additions and 0 deletions

View File

@ -65,6 +65,7 @@ class _HomePageState extends State<HomePage>
dividerColor: Colors.transparent,
enableFeedback: true,
splashBorderRadius: BorderRadius.circular(10),
tabAlignment: TabAlignment.center,
onTap: (value) {
feedBack();
if (_homeController.initialIndex == value) {

View File

@ -82,6 +82,7 @@ class _SearchResultPageState extends State<SearchResultPage>
labelStyle: const TextStyle(fontSize: 13),
dividerColor: Colors.transparent,
unselectedLabelColor: Theme.of(context).colorScheme.outline,
tabAlignment: TabAlignment.start,
onTap: (index) {
if (index == _searchResultController!.tabIndex) {
Get.find<SearchPanelController>(