feat: 首页搜索页点击tab返回顶部

This commit is contained in:
guozhigq
2023-08-09 23:21:27 +08:00
parent 8a5a56cb15
commit d5943d88b0
8 changed files with 32 additions and 16 deletions

View File

@ -142,8 +142,7 @@ class _MainAppState extends State<MainApp> with SingleTickerProviderStateMixin {
currentIndex: selectedIndex,
// type: BottomNavigationBarType.shifting,
selectedItemColor: Theme.of(context).colorScheme.primary,
unselectedItemColor:
Theme.of(context).colorScheme.onSurfaceVariant,
unselectedItemColor: Theme.of(context).colorScheme.outline,
selectedFontSize: 12.4,
onTap: (value) => setIndex(value),
items: [