16 Jul 2020
Flutter - What's new 1.17 latest stable release 2020

Flutter 1.17 and Dart 2.8

So the new version of “Flutter” and “Dart” is here. Although we are abit late in sharing this information 😛 but in this post, we shall discuss about the new updates that we have in flutter and dart

Dart 2.8

There are two changes made by the Dart team in the Dart 2.8 SDK:-

  1. Improves performance in Pubget.
  2. Keeps our packages dependencies up-to-date.

Here is what we got when we ran the pub outdated or fluter pub outdated command from the terminal.

C:\Users\AndroidStudioProjects\dialog_box>flutter pub outdated
Dependencies      Current   Upgradable  Resolvable  Latest
giffy_dialog      *1.6.1    1.7.0       1.7.0       1.7.0

dev_dependencies: all up-to-date

transitive dependencies
collection        *1.14.11  1.14.12     1.14.12     1.14.12
flare_dart        *2.3.2    2.3.4       2.3.4       2.3.4
flare_flutter     *1.8.3    2.0.3       2.0.3       2.0.3

transitive dev_dependencies
archive           *2.0.11   2.0.13      2.0.13      2.0.13
args              *1.5.2    1.6.0       1.6.0       1.6.0
async             *2.4.0    2.4.1       2.4.1       2.4.1
boolean_selector  *1.0.5    2.0.0       2.0.0       2.0.0
charcode          *1.1.2    1.1.3       1.1.3       1.1.3
crypto            *2.1.3    2.1.4       2.1.4       2.1.4
image             *2.1.4    2.1.12      2.1.12      2.1.12
path              *1.6.4    *1.6.4      *1.6.4      1.7.0
pedantic          *1.8.0+1  -           -           1.9.0
petitparser       *2.4.0    *2.4.0      *2.4.0      3.0.2
quiver            *2.0.5    2.1.3       2.1.3       2.1.3
source_span       *1.5.5    1.7.0       1.7.0       1.7.0
test_api          *0.2.11   0.2.15      0.2.15      0.2.15
xml               *3.5.0    *3.6.1      *3.6.1      4.1.0

15 upgradable dependencies are locked (in pubspec.lock) to older versions.
To update these dependencies, use `pub upgrade`.

We will get the suggestion regarding our current version and also the latest version available.

We can run pub upgrade to update these dependencies.

Flutter 1.17

If we talk about the changes made to Flutter 1.17, following are the changes are made :-

  1. Google fonts
  2. Better performance
  3. Metal Support for ios
  4. New widgets / Updated Widgets
  5. Material Text Scale
  6. App size improvement
  7. Network tracking Tools
  8. Hot reload improved
  9. Default use of Android X
  10. Samsung keyboard issue solved
  11. Updated the scrolling and text input widget

Google Fonts

So now we can use Google fonts easily. This package is fantastic as it provides us google_fonts API.

It provides us 977 read to use fonts without storing in our assets folder and mapped in pubspec.

Required Package

import GoogleFonts

import 'package:google_fonts/google_fonts.dart';

use google _fonts

Text(
  'This is Google Fonts',
  style: GoogleFonts.lato(),
),

use google _fonts with TextStyle

Text(
  'This is Google Fonts',
  style: GoogleFonts.lato(
    textStyle: TextStyle(color: Colors.blue, letterSpacing: .5),
  ),
),

google_fonts Theme()

MaterialApp(
  theme: ThemeData(
    textTheme: GoogleFonts.latoTextTheme(
      Theme.of(context).textTheme,
    ),
  ),
);

Better Performance

  1. Faster and clear animation
  2. smaller apps
  3. lower memory utilization
  4. 20 % to 40 % better navigation
  5. 40 % reduction in CPU/GPU
  6. Better scrolling with less Memory Usage

Metal Support for ios

  1. Provides direct access to the GPU
  2. Reduced app frame rendering time

New Widgets / Updated Widgets

  1. NavigationRail
  2. New DatePicker
  3. Better Text Selection menu

NavigationRail()

A material StatefulWidget that is meant to be displayed at the left or right of an app to navigate between a small number of views, typically between three and five.

DatePicker(), NavigationRail() and New Text input mode

DatePicker has been updated according to the material design and also text input mode.

You can see the Material Design of DatePicker : –

Image for post

Image for post

Image for post

Hope you have liked this post.

About Philomathes Jigyasu

Philomathes (pronounced as fillo-MAY-thus) is a fictional character at VAYUZ (https://www.vayuz.com), who is on a never ending journey called “LEARNING”. In a way, Philomathes embodies VAYUZ - Way of life, which is if you are not learning then you are not breathing. The word Philomathes, comes from the Greek roots philo and philein meaning "to love" and the Greek roots mathos (MAH-thos) and mathesis (muh-THAYSIS) meaning “learning”. Philomathes through his Blogs and Vlogs (Video Blogs) will share his experience, learnings and thoughts. In his tryst to learn and understand, he would also seek answers to questions. So if you would like to join him in this incredible journey called “ life” then feel free to write to him on philomathes.jigyasu@vayuz.com. Always remember, knowledge is all around us, we just need to keep our guards down and senses on.

Leave a Comment