mirror of
https://github.com/venera-app/venera.git
synced 2025-09-27 15:57:25 +00:00
fix TabBar
This commit is contained in:
@@ -332,7 +332,7 @@ class _FilledTabBarState extends State<FilledTabBar> {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return AnimatedBuilder(
|
return AnimatedBuilder(
|
||||||
animation: _controller,
|
animation: _controller.animation ?? _controller,
|
||||||
builder: buildTabBar,
|
builder: buildTabBar,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -427,7 +427,7 @@ class _FilledTabBarState extends State<FilledTabBar> {
|
|||||||
padding: const EdgeInsets.symmetric(horizontal: 16),
|
padding: const EdgeInsets.symmetric(horizontal: 16),
|
||||||
child: DefaultTextStyle(
|
child: DefaultTextStyle(
|
||||||
style: DefaultTextStyle.of(context).style.copyWith(
|
style: DefaultTextStyle.of(context).style.copyWith(
|
||||||
color: i == _controller.index
|
color: i == _controller.animation?.value.round()
|
||||||
? context.colorScheme.primary
|
? context.colorScheme.primary
|
||||||
: context.colorScheme.onSurface,
|
: context.colorScheme.onSurface,
|
||||||
fontWeight: FontWeight.w500,
|
fontWeight: FontWeight.w500,
|
||||||
|
Reference in New Issue
Block a user