Modal opens out of screen and then comes back inside screen after few seconds - modal-dialog

I'm not a front end developer I have a modal when it opens or I made any operation it goes out of screen on left side and comes back to it's real state after few seconds. It happens only in mobile. I have also upload the images
Image 1 bad modal
Image 2 same modal change after few seconds

Related

Flutter - Resume a screen after navigating back to it

I have two screens: Screen A (List of chats), Screen B (a chat with many messages)
I am looking for a way to save the scrolling position of screen B, after I navigate to screen A then navigate back to screen B
I investigated the use of ScrollablePositionedList to listen to the scrolling and save it somewhere in the state. Then jumps back the index of the message when coming back to screen B. But I feel this will very heavy on the performance.
That's why I am wondering if there is a way, to Resume a screen (not the whole app) and save the scrolling position and everything when navigating back/forth.

flutter transition splash screen to first screen without delay

I've just set splash screen on iOS and launch screen looks fine but when move to launch screen to first screen (MaterialApp home), image will disappear for a moment. So, you can tell obviously that image was changed.
Is there any workaround to fix this?

SKProductsRequest before screen shows

I have a simple question: How do I load the SKProducts before the screen loads?
I want to do this because they start to load in viewWillAppear but that isn't enough and it takes 1-3 seconds or even more depending on the internet speed for the IAPs to properly load and if the user presses any button to buy an IAP the app crashes because they haven't loaded.
So how to I make sure that they are loaded when the screen shows up?
NOTE: It's not the initial screen. It's a separate one which shows up when the user presses a button.
I didn't find a complete fix for this but I disabled the buttons until the app contacts the AppStore. Not perfect because users wait a few seconds and app crashes if you press the buttons right after they are enabled but it's an improvement and I'm fine with that.

Want to change splash screen every time the app launches in iphone

I am having an app in which I have a requirement of changing the splash screen every time when the app launches.
I am having 5 images and i want to change my splash screen by one of the 5 images every time user launches the app.
Is it possible to do this?
You can't change the splash-screen that shows while your app is loading (that scales up when your app is launched), but you can make it something generic (like a texture or solid colour) then as the first view controller in the app you can load the exact same image (or just use a solid background colour), then you can fade-in one of your five images and show that for a short period before transitioning to the first (real) screen of your app.
For example:
Splash is solid black.
Root view controller gets set to a view with solid black background colour and an image-view containing one of the five images, with alpha set to 0.
Fade in the selected image.
Transition to first-screen of app.
By making the first view controller look exactly like the splash screen (initially) the cut-transition is seamless and your custom transition to your in-app splash screen can begin.
i suggest to leave the splashscreen empty and directly go to another view where you do all the loading and change images there. Changing the splashscreen image at runtime is not possible.
Maybe you can make an image like loading or your logo for the splash screen as this will still pop up for a few seconds.
It's not possible to do what you want. See App Launch (Default) Images. You can only change the Default image based on:
Orientation
Pixel density (retina/non-retina)
Device (iphone/ipad)
URL scheme used to launch the app
Your app data is also read-only so you can't get around this by modifying the Default.png file manually.
Also, it's a very bad idea to not add a Default.png file like some other answers are recommending. You will end up with a black screen for a few seconds, which will also appear in the multitasking switcher if your app has been terminated in the background. This is a very bad user experience and your app will look shoddy.
There is work around for this.
Don't load default Splash Screens.
You can create your own splash screen which will be called every time user open the app.
You can manage the 5 images in this very easily as control will be in your hand.

Splash Screen using webservice

I have to display a splash screen which resides on a server. Using a web service, I have to get it displayed in my SplashScreenViewController. So it's obvious that when my app launches, it will display a blank screen (img is being downloaded) and after a few seconds, it will show my splash screen.
I know that the splash screen image should have to be in the main bundle, and locally it should be seen as a splash image. But the client wants us to get it loaded from a server.
So can I use an activity indicator in that duration until my splash screen gets loaded?
That is a very bad implementation of a splash screen, but there are no other ways, you will need to use an indicator view, until the image has been downloaded,
Also consider to add a default image its much better than a white view
You will have to deal with some issues, like what would you do if internet connection is very slow or you are not connected, and what would you do if you dont recieve the image you asked for any reason