improve ui

This commit is contained in:
nyne
2024-10-10 10:13:35 +08:00
parent df559e4cca
commit f228c7ee17
12 changed files with 126 additions and 105 deletions

View File

@@ -296,7 +296,7 @@ class _FilledTabBarState extends State<FilledTabBar> {
padding: tabPadding,
radius: tabRadius,
);
if (old != null) {
if (old != null && old.offsets != null && old.itemHeight != null) {
painter!.update(old.offsets!, old.itemHeight!);
}
}