Flutter - Splash Screen for Android and iOS What is Splash Screen? Splash Screen (or Launch Screen on iOS) is the very first page of your app seen by users. So it would be great to make a good first impression. I would like to present you a few ways to create a splash screen in your Flutter application using native solutions or Flutter package. Our goal is to create splash screens as shown below (from left: iOS 15, Android 12, Android 8): iOS Launch Screen using Storyboard We are able to set a splash screen for iOS in two ways. The first one is by using Storyboard. 1. First of all, we need to open our project in Xcode. Being in the main directory of the project, we can do that using open ios/Runner.xcworkspace command. 2. Then, we need to add AssetImage, which is going to be our icon on the splash screen. As you can see in the image below, we need to provide 3 different resolutions of an icon: 1x, 2x and 3x (more details ...
How to Update State of Parent StatefulWidget from other Child StatefulWidget in Flutter? Hi! all today we going to learn how we can update or change text of parent StatefulWidget in appbar from the child StatefulWidget in flutter. Same as we can also change any color, icon or other data of parent widget. class ParentWidget extends StatelessWidget { int cartitem = 0 ; @override Widget build ( BuildContext context) { return Scaffold ( appBar: AppBar ( titleSpacing: 0 , leading: Icon ( Icons .location_on, size: 20 , color: Colors .white, ), title: Text ( "Title" ), actions: < Widget >[ Stack ( children: [ IconButton ( icon: Icon ( Icons .shopping_cart), color: Colors .white, ), Positioned . directional ( textDirection: Directionality . of (context), ...