Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

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

ashilkn6b70d8556b31
diff --git a/mobile/lib/ui/sharing/add_partipant_page.dart b/mobile/lib/ui/sharing/add_partipant_page.dart
index 1498f90867..e4a871fd86 100644
--- a/mobile/lib/ui/sharing/add_partipant_page.dart
+++ b/mobile/lib/ui/sharing/add_partipant_page.dart
@@ -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();