What’s New In Flutter 2.5 And Dart 2.14?

Flutter 2.5 release is the third launch in 2021, including 2.0 in March and Flutter 2.2 in May. Flutter programmers are excited about Flutter 2.5 features. Latest version 2.5, offers great support for full-screen Android apps, material you widgets, Apple Silicon support for Dart programming language. It also includes enhanced interaction between animations and asynchronous code, fewer garbage collector operations and low latency on native calls. Most desired features of Flutter that were asked by Android developers is the full-screen ability in apps. Now you can observe when app enters and exits full-screen mode and adjust android’s navigation bar. Let’s take a look at amazing new features of Flutter 2.5.
Features Of Flutter 2.5-

1. Performance Improvements-
The Flutter team has continued to reduce iOS jank issues and is settling the better with this delivery. There are 3 ways to reduce the iOS jank issues-
- They improved schedule policies
- Garbage collection improvement
- Message latency between Dart and Objective-C/Swift or Dart and Java/Kotlin too
2. Material You-
It is Google’s latest iteration of Material Design. Material v3, is a considerable upgrade of the Material Design language. New themes, shapes and even dynamic color effects have been added. Material You support is now available in Flutter 2.5, with the larger FAB sizes and lots of theme choices. Though it is not complete, it demonstrates that Google is making progress.
3. Android Fullscreen Mode-
Flutter 2.5 has fixed issues regarding android apps when running in full screen mode with updating new modes-
- Sticky- Display the system overlays by swiping on the edge of screen
- Immersive Sticky- It allows the framework to handle the swipe
- Lean Back- display the framework overlays by tapping anywhere on-screen.
- Edge-to-Edge- Display app elements behind the translucent system UI overlays.
Hence, when the user engages with the application, if the system UI comes back, Flutter programmers can now be able to compose their code to get back to fullscreen or do something different.
3. Scrolling Improvements-
MaterialState.scrolledUnder state enables you to see in action with the sample code in PR (#79999). The addition of scroll metrics alerts which offer notifications about scrollable regions even when the user is not scrolling is another improvement. For instance, based on the size of ListView, the scrollbar appears or disappears as perfect. There is no need to write any code in this case, but you may if you want to catch the ScrollMetricNotificationchanges.
4. Material Banner Support-
The incorporation of Material banner support to the ScaffoldMessenger is one more incredible effort from the community. ScaffoldMessenger is a great approach to show SnackBars at the bottom of screen to give users alerts. Now, you can put a banner to the top of your scaffold in Flutter 2.5 that will be in place till the user dismisses it.
5. Pigeon Is v1.0 Now-
Pigeon is code generator tool used to generate typesafe interlop code between Flutter and its host platform. You can define plugin’s API’s description and generate code for dart, Java and Objective-C. Hence, the role of Pigeon is to make communication between Flutter and host platform type-safe easier and faster.
Know more at- https://solaceinfotech.com/blog/whats-new-in-flutter-2-5-and-dart-2-14/
No comments:
Post a Comment