Use MediaQuery.viewInsetsOf() instead of MediaQuery.of() to reduce rebuids

This commit is contained in:
ashilkn 2024-03-14 11:52:13 +05:30
parent d4cf8c5f9a
commit 6b70d8556b

View file

@ -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();