Use MediaQuery.viewInsetsOf() instead of MediaQuery.of() to reduce rebuids
This commit is contained in:
parent
d4cf8c5f9a
commit
6b70d8556b
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ class _AddParticipantPage extends State<AddParticipantPage> {
|
|||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
isKeypadOpen = MediaQuery.of(context).viewInsets.bottom > 100;
|
||||
isKeypadOpen = MediaQuery.viewInsetsOf(context).bottom > 100;
|
||||
final enteTextTheme = getEnteTextTheme(context);
|
||||
final enteColorScheme = getEnteColorScheme(context);
|
||||
final List<User> suggestedUsers = _getSuggestedUser();
|
||||
|
|
Loading…
Add table
Reference in a new issue