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
|
||||
void didChangeMetrics() {
|
||||
// when top padding changes
|
||||
_updateStatusBarHeight();
|
||||
// when text scale factor changes
|
||||
_updateAppBarHeight();
|
||||
// when top padding or text scale factor change
|
||||
WidgetsBinding.instance.addPostFrameCallback((_) => _updateStatusBarHeight());
|
||||
}
|
||||
|
||||
@override
|
||||
|
|
Loading…
Reference in a new issue