diff --git a/ios/Runner/Info.plist b/ios/Runner/Info.plist
index 99e8784..617ae9c 100644
--- a/ios/Runner/Info.plist
+++ b/ios/Runner/Info.plist
@@ -50,6 +50,15 @@
UISupportedInterfaceOrientations
UIInterfaceOrientationPortrait
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ UISupportedInterfaceOrientations~ipad
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationPortraitUpsideDown
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
diff --git a/lib/src/views/chats/chat_list_view.dart b/lib/src/views/chats/chat_list_view.dart
index 27a69e4..f76c0ed 100644
--- a/lib/src/views/chats/chat_list_view.dart
+++ b/lib/src/views/chats/chat_list_view.dart
@@ -111,14 +111,17 @@ class _ChatListViewState extends State {
await apiProvider.connect();
await Future.delayed(Duration(seconds: 1));
},
- child: ListView(
+ child: ListView.builder(
restorationId: 'chat_list_view',
- children: contacts.map((user) {
+ itemCount: contacts.length,
+ itemBuilder: (BuildContext context, int index) {
+ final user = contacts[index];
return UserListItem(
+ key: ValueKey(user.userId),
user: user,
maxTotalMediaCounter: maxTotalMediaCounter,
);
- }).toList(),
+ },
),
);
},
diff --git a/pubspec.yaml b/pubspec.yaml
index 36fc262..05339f9 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -4,7 +4,7 @@ description: "Send pictures to friends in real time and be sure you are the only
# Prevent accidental publishing to pub.dev.
publish_to: 'none'
-version: 0.0.14+14
+version: 0.0.16+16
environment:
sdk: ^3.6.0