diff --git a/whatsapp_app/ios/Podfile.lock b/whatsapp_app/ios/Podfile.lock index c05fd8a..a21288e 100644 --- a/whatsapp_app/ios/Podfile.lock +++ b/whatsapp_app/ios/Podfile.lock @@ -32,6 +32,8 @@ PODS: - GoogleUtilities/UserDefaults (~> 7.8) - nanopb (< 2.30911.0, >= 2.30908.0) - Flutter (1.0.0) + - flutter_contacts (0.0.1): + - Flutter - flutter_local_notifications (0.0.1): - Flutter - GoogleDataTransport (9.4.1): @@ -80,6 +82,7 @@ DEPENDENCIES: - firebase_core (from `.symlinks/plugins/firebase_core/ios`) - firebase_messaging (from `.symlinks/plugins/firebase_messaging/ios`) - Flutter (from `Flutter`) + - flutter_contacts (from `.symlinks/plugins/flutter_contacts/ios`) - flutter_local_notifications (from `.symlinks/plugins/flutter_local_notifications/ios`) - shared_preferences_foundation (from `.symlinks/plugins/shared_preferences_foundation/darwin`) - sqflite_darwin (from `.symlinks/plugins/sqflite_darwin/darwin`) @@ -103,6 +106,8 @@ EXTERNAL SOURCES: :path: ".symlinks/plugins/firebase_messaging/ios" Flutter: :path: Flutter + flutter_contacts: + :path: ".symlinks/plugins/flutter_contacts/ios" flutter_local_notifications: :path: ".symlinks/plugins/flutter_local_notifications/ios" shared_preferences_foundation: @@ -119,6 +124,7 @@ SPEC CHECKSUMS: FirebaseInstallations: 913cf60d0400ebd5d6b63a28b290372ab44590dd FirebaseMessaging: 88950ba9485052891ebe26f6c43a52bb62248952 Flutter: cabc95a1d2626b1b06e7179b784ebcf0c0cde467 + flutter_contacts: 5383945387e7ca37cf963d4be57c21f2fc15ca9f flutter_local_notifications: ad39620c743ea4c15127860f4b5641649a988100 GoogleDataTransport: 6c09b596d841063d76d4288cc2d2f42cc36e1e2a GoogleUtilities: ea963c370a38a8069cc5f7ba4ca849a60b6d7d15 diff --git a/whatsapp_app/ios/Runner/AppDelegate.swift b/whatsapp_app/ios/Runner/AppDelegate.swift index c30b367..23e2922 100644 --- a/whatsapp_app/ios/Runner/AppDelegate.swift +++ b/whatsapp_app/ios/Runner/AppDelegate.swift @@ -7,6 +7,10 @@ import UIKit _ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? ) -> Bool { + if self.window == nil { + self.window = UIWindow(frame: UIScreen.main.bounds) + self.window?.rootViewController = UIViewController() + } return super.application(application, didFinishLaunchingWithOptions: launchOptions) } diff --git a/whatsapp_app/lib/widgets/message_bubble.dart b/whatsapp_app/lib/widgets/message_bubble.dart index ab78c71..ee0415c 100644 --- a/whatsapp_app/lib/widgets/message_bubble.dart +++ b/whatsapp_app/lib/widgets/message_bubble.dart @@ -222,11 +222,13 @@ class _InteractiveMediaWidgetState extends State { if (widget.message.type == "image" || widget.message.type == "sticker") { return ClipRRect( borderRadius: BorderRadius.circular(8), - child: Image.memory( - bytes, - fit: BoxFit.cover, - maxHeight: 250, - width: double.infinity, + child: ConstrainedBox( + constraints: const BoxConstraints(maxHeight: 250), + child: Image.memory( + bytes, + fit: BoxFit.cover, + width: double.infinity, + ), ), ); }