minor fix
This commit is contained in:
parent
f143f86732
commit
670b4b1830
1 changed files with 2 additions and 4 deletions
|
@ -152,10 +152,8 @@ class _CollectionAppBarState extends State<CollectionAppBar> with SingleTickerPr
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void didChangeMetrics() {
|
void didChangeMetrics() {
|
||||||
// when top padding changes
|
// when top padding or text scale factor change
|
||||||
_updateStatusBarHeight();
|
WidgetsBinding.instance.addPostFrameCallback((_) => _updateStatusBarHeight());
|
||||||
// when text scale factor changes
|
|
||||||
_updateAppBarHeight();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|
Loading…
Reference in a new issue