smooth animations
This commit is contained in:
@@ -186,23 +186,28 @@ class _TabBar extends HookConsumerWidget {
|
|||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
return Visibility(
|
return AnimatedSize(
|
||||||
visible:
|
duration: const Duration(milliseconds: 125),
|
||||||
sheetController.value != null || (!tabInFullScreen && appBarVisible),
|
curve: Curves.easeInOut,
|
||||||
maintainState: true,
|
child: Visibility(
|
||||||
child: switch (tabBarPosition) {
|
visible:
|
||||||
TabBarPosition.top => BrowserTopAppBar(
|
sheetController.value != null ||
|
||||||
showMainToolbar: showMainToolbar,
|
(!tabInFullScreen && appBarVisible),
|
||||||
showContextualToolbar: showContextualToolbar,
|
maintainState: true,
|
||||||
showQuickTabSwitcherBar: showQuickTabSwitcherBar,
|
child: switch (tabBarPosition) {
|
||||||
),
|
TabBarPosition.top => BrowserTopAppBar(
|
||||||
TabBarPosition.bottom => BrowserBottomAppBar(
|
showMainToolbar: showMainToolbar,
|
||||||
showMainToolbar: showMainToolbar,
|
showContextualToolbar: showContextualToolbar,
|
||||||
displayedSheet: displayedSheet,
|
showQuickTabSwitcherBar: showQuickTabSwitcherBar,
|
||||||
showContextualToolbar: showContextualToolbar,
|
),
|
||||||
showQuickTabSwitcherBar: showQuickTabSwitcherBar,
|
TabBarPosition.bottom => BrowserBottomAppBar(
|
||||||
),
|
showMainToolbar: showMainToolbar,
|
||||||
},
|
displayedSheet: displayedSheet,
|
||||||
|
showContextualToolbar: showContextualToolbar,
|
||||||
|
showQuickTabSwitcherBar: showQuickTabSwitcherBar,
|
||||||
|
),
|
||||||
|
},
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
@@ -68,6 +68,7 @@ class BrowserFab extends HookConsumerWidget {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return AnimatedSwitcher(
|
return AnimatedSwitcher(
|
||||||
|
key: child.key,
|
||||||
duration: const Duration(milliseconds: 200),
|
duration: const Duration(milliseconds: 200),
|
||||||
transitionBuilder: (child, animation) {
|
transitionBuilder: (child, animation) {
|
||||||
return ScaleTransition(scale: animation, child: child);
|
return ScaleTransition(scale: animation, child: child);
|
||||||
|
|||||||
Reference in New Issue
Block a user