John David

John David

1558015093

Using Go Library in Flutter

Flutter has made it possible to develope cross platform mobile app with native performance. Till we had Flutter we used to write the platform specific UI code of mobile app using Java/Kotlin for Android and Objective-C/Swift for iOS

Now with Flutter we can use same codebase for App/UI for multiple platforms.

While working on various full-stack mobile-app development projects at Arputer Technologies we wrote tons of platform independent business-logic or algorithm code in Go and used Google’s Gomobile tool to create Android/iOS natively compiled libraries which are called from Java/Kotlin or Objective-C/Swift UI depending on the platform. This approach helped us to write (and test) core business logic code once and use the same in multiple platforms (Android, iOS and … Linux, Mac). While working with Flutter we wanted to reuse the same Go codebase/API and we found it easy to use the Gomobile generated Android/iOS libraries in Flutter using Flutter platform-channel.

In this article we will learn how to integrate Go library code into Flutter and use it in cross platform scenario. We will try to achieve following :

  • A simple Go app which receives an integer variable from Flutter through platform-channel and returns an incremented value of it.
  • A simple flutter app which sends integer to native Go API and update it’s stateful widget. We will modify the wellknow counter app which is generated from template when you create Flutter app.

In this article we will assume that the development workstation is Linux and running any of the latest Linux distributions and Android is used for testing the mobile app to be developed.

Development workstation setup :

  • Ensure that Go compiler is installed.
    eg: go 1.12.2 linux/amd64* Ensure that Android SDK is installed.
    eg: Android 9.0 (Pie) - Android SDK Platform 28.* Ensure that Android NDK is installed.
    eg: NDK 19.2.x* Android Emulator is installed for testing the app.
    eg: Google Play Intel x86 Atom System Image.###

Environment setup for Go :

First we need to prepare the environment for Gomobile development. Latest version of Go is recommended to be installed

~$ go version
go version go1.12.2 linux/amd64

Environment variables :

Update environment variables (your path might be different, hence update accordingly).

~$ export GOPATH=$HOME/workspace/go-packages
~$ export ANDROID_HOME=$HOME/workspace/android-sdk/
~$ export ANDROID_SDK_ROOT=$ANDROID_HOME
~$ export ANDROID_NDK_ROOT=$ANDROID_HOME/ndk-bundle
~$ export PATH=$PATH:$GOPATH/bin:$ANDROID_HOME/platform-tools/

Please note for gomobile to work correctly, you need have above environment variables set and exported.

Gomobile installation :

~$ go get golang.org/x/mobile/cmd/gomobile
~$ gomobile version
gomobile version +3e0bab5 ...
~$ gomobile init

Environment setup for flutter :

~$ git clone -b master https://github.com/flutter/flutter.git ~/workspace/flutter-sdk
~$ mkdir $HOME/workspace/flutter-sdk/pub_cache
~$ export PATH=$PATH:$FLUTTER_ROOT/bin:$PUB_CACHE/bin
~$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.5.4-hotfix.2, on Linux, locale en_IN.UTF-8)
 
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] Android Studio (version 3.4)
[✓] VS Code (version 1.33.1)
[✓] Connected device (1 available)

• No issues found!

Create our Go Library for Flutter

~$ mkdir -p $GOPATH/src/gonative-lib

Create $GOPATH/src/gonative-lib/data-processor.go

package gonativelib

import (
    "errors"
)

type (
    // DataProcessor :
    DataProcessor struct {
      // add fields here
    }
)

// Increment : Increment the int received as an argument.
func (p *DataProcessor) Increment(data int) (int, error) {
    if data < 0 {
      // Return error if data is negative. This will
      // result exception in Android side.
      return data, errors.New("data can't be negative")
    }
    return (data + 1), nil
}

Compile and create Android library :

~$ cd $GOPATH/src/gonative-lib
~$ gomobile bind --target android

Following files are generated by Gomobile command.

  • gonativelib.aar : Android library to be used in Flutter app.
    Gonativelib : class corresponding to the Go package.DataProcessor : class corresponding to Go struct, which is to be used in app.* gonativelib-sources.jar : Java sources for reference.

Data types supported by Gomobile :

At present, a subset of Go types are supported by Gomobile. For more information refer to gobind.

  • Signed integer and floating point types.
  • String and boolean types.
  • Byte slice types. Note that byte slices are passed by reference, and support mutation.
  • Any function type all of whose parameters and results have supported types. Functions must return either no results, one result, or two results where the type of the second is the built-in ‘error’ type.
  • Any interface type, all of whose exported methods have supported function types.
  • Any struct type, all of whose exported methods have supported function types and all of whose exported fields have supported types.

Create Flutter app

Create flutter app from from default template.

~$ cd ~/workspace/
~$ flutter create flutter_gonative_app
~$ cd ~/workspace/flutter_gonative_app

When you run this default app from your favorite IDE you should be able to see the familiar app with stateful widget containing the floating-button. On clicking the floating-button the counter value get updated and shown in UI.

In the default app, the counter is updated in _incrementCounter()

  void _incrementCounter() {
    setState(() {
      // This call to setState tells the Flutter framework that something has
      // changed in this State, which causes it to rerun the build method below
      // so that the display can reflect the updated values. If we changed
      // _counter without calling setState(), then the build method would not be
      // called again, and so nothing would appear to happen.
      _counter++;
    });
  }

We will updated this function to call Go Library API in following sections.

Add Go library (Android) to Flutter app :

First, add Android gonativelib which we have created in the previous step, to the Flutter app.

To add the Android gonativelib which we have created in the previous step, to the Flutter app, create libs folder in Android code of Flutter app and copygonativelib Android aar file into this folder.

~$ mkdir ~/workspace/flutter_gonative_app/android/app/src/main/libs/
~$ cp $GOPATH/src/gonative-lib/gonativelib.aar ~/workspace/flutter_gonative_app/android/app/src/main/libs/

Now update ~/workspace/flutter_gonative_app/android/app/build.gradle with following :

repositories{
    flatDir{
         dirs 'src/main/libs'
    }
}

dependencies {
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
    api(name:'gonativelib', ext:'aar')
}

Corresponding git-diff.

~$ git diff flutter_gonative_app/android/app/build.gradle
diff --git a/flutter_gonative_app/android/app/build.gradle b/flutter_gonative_app/android/app/build.gradle
index 51d0d1d..4174a0e 100644
--- a/flutter_gonative_app/android/app/build.gradle
+++ b/flutter_gonative_app/android/app/build.gradle
@@ -54,8 +54,15 @@ flutter {
     source '../..'
 }
 
+repositories{
+    flatDir{
+         dirs 'src/main/libs'
+    }
+}
+
 dependencies {
     testImplementation 'junit:junit:4.12'
     androidTestImplementation 'com.android.support.test:runner:1.0.2'
     androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
+    api(name:'gonativelib', ext:'aar')
 }


Now the classes provided by gonativelib should be accessible from Android.

Update ~/workspace/flutter_gonative_app/android/app/src/main/java/com/example/flutter_gonative_app/MainActivity.java with following to access gonativelib.DataProcessor.

package com.example.flutter_gonative_app;

import android.os.Bundle;

import gonativelib.DataProcessor;
import io.flutter.app.FlutterActivity;
import io.flutter.plugins.GeneratedPluginRegistrant;


public class MainActivity extends FlutterActivity {
  DataProcessor goNativeDataProcessor = new DataProcessor();

  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    GeneratedPluginRegistrant.registerWith(this);
  }
}

Corresponding git-diff.

~$ git diff flutter_gonative_app/android/app/src/main/java/com/example/flutter_gonative_app/MainActivity.java
diff --git a/flutter_gonative_app/android/app/src/main/java/com/example/flutter_gonative_app/MainActivity.java b/flutter_gonative_app/android/app/src/main/java/com/example/flutter_gonative_app/MainActivity.java
index 2fb247b..cca3684 100644
--- a/flutter_gonative_app/android/app/src/main/java/com/example/flutter_gonative_app/MainActivity.java
+++ b/flutter_gonative_app/android/app/src/main/java/com/example/flutter_gonative_app/MainActivity.java
@@ -1,10 +1,15 @@
 package com.example.flutter_gonative_app;
 
 import android.os.Bundle;
+
+import gonativelib.DataProcessor;
 import io.flutter.app.FlutterActivity;
 import io.flutter.plugins.GeneratedPluginRegistrant;
 
+
 public class MainActivity extends FlutterActivity {
+  DataProcessor goNativeDataProcessor = new DataProcessor();
+
   @Override
   protected void onCreate(Bundle savedInstanceState) {
     super.onCreate(savedInstanceState);


Restart your flutter app to get it recompiled with the changes you have made.

Add platform-channel to Flutter app

To call API of gonativelib, we need to use FLutter Platform Channel.

Data types supported in platform-channel :

Dart      Android            
===============================
null      null               
bool      java.lang.Boolean  
int         java.lang.Integer  
int         java.lang.Long     
double      java.lang.Double   
String      java.lang.String   
Uint8List   byte[]             
Int32List   int[]              
Int64List   long[]             
Float64List double[]           
List      java.util.ArrayList
Map         java.util.HashMap  

Add MethodChannel in Flutter/Dart :

Flutter app’s _MyHomePageState class holds apps’s current state. We need to create a MethodChannel though which we will be communicating with gonalivelib. The client and host sides of the Channel do the handshake through the channel name passed in the MethodChannel constructor of platform-channel. In our case, the channel name is example.com/gonative. This should be unique in the app.

In the Flutter side update _incrementCounter() function from ~/workspace/flutter_gonative_app/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter/services.dart';

...

class _MyHomePageState extends State<MyHomePage> {
  int _counter = 0;
  static const platform = const MethodChannel('example.com/gonative');

  Future<void> _incrementCounter() async {
    int incrementedCounter;

    try {
      var arguments = Map();
      arguments["data"] = _counter;
      incrementedCounter =
          await platform.invokeMethod('dataProcessor_increment', arguments);
    } on PlatformException catch (e) {
      print("PlatformException: ${e.message}");
    }

    if (incrementedCounter != null) {
      setState(() {
        _counter = incrementedCounter;
      });
    }
  }

...

Corresponding git-diff.

~$ git diff flutter_gonative_app/lib/main.dart
diff --git a/flutter_gonative_app/lib/main.dart b/flutter_gonative_app/lib/main.dart
index f4ebf1d..c281921 100644
--- a/flutter_gonative_app/lib/main.dart
+++ b/flutter_gonative_app/lib/main.dart
@@ -1,4 +1,5 @@
 import 'package:flutter/material.dart';
+import 'package:flutter/services.dart';
 
 void main() => runApp(MyApp());
 
@@ -45,16 +46,25 @@ class MyHomePage extends StatefulWidget {
 
 class _MyHomePageState extends State<MyHomePage> {
   int _counter = 0;
+  static const platform = const MethodChannel('example.com/gonative');
 
-  void _incrementCounter() {
-    setState(() {
-      // This call to setState tells the Flutter framework that something has
-      // changed in this State, which causes it to rerun the build method below
-      // so that the display can reflect the updated values. If we changed
-      // _counter without calling setState(), then the build method would not be
-      // called again, and so nothing would appear to happen.
-      _counter++;
-    });
+  Future<void> _incrementCounter() async {
+    int incrementedCounter;
+
+    try {
+      var arguments = Map();
+      arguments["data"] = _counter;
+      incrementedCounter =
+          await platform.invokeMethod('dataProcessor_increment', arguments);
+    } on PlatformException catch (e) {
+      print("PlatformException: ${e.message}");
+    }
+
+    if (incrementedCounter != null) {
+      setState(() {
+        _counter = incrementedCounter;
+      });
+    }
   }
 
   @override

Let us now understand the magic happening in above code.

  • Once the MethodChannel is established, Flutter can invoke a method (using invokeMethod()) by specifying a concrete method to call via String identifier (in our case dataProcessor_increment). The invokeMethod returns a Future and may result an exception (hence wrapped in a try-catch block).
  • Once the Future returns, _counter is updated in setState() call which in turn updates the Widget automatically.
  • Please note, our gonativelib can return exception which is processed in Android/Java side and transparently forwarded to Flutter/Dart. The same exception can be addressed in on PlatformException catch (e).

Add MethodChannel in Android/Java :

Now in Android Java side update MainActivity.onCreate at ~/workspace/flutter_gonative_app/android/app/src/main/java/com/example/flutter_gonative_app/MainActivity.java with following :

package com.example.flutter_gonative_app;

import android.os.Bundle;
import android.util.Log;

import gonativelib.DataProcessor;
import io.flutter.app.FlutterActivity;
import io.flutter.plugin.common.MethodCall;
import io.flutter.plugin.common.MethodChannel;
import io.flutter.plugins.GeneratedPluginRegistrant;

public class MainActivity extends FlutterActivity {
  DataProcessor goNativeDataProcessor = new DataProcessor();

  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    GeneratedPluginRegistrant.registerWith(this);

    MethodChannel methodChannel = new MethodChannel(getFlutterView(), "example.com/gonative");
    methodChannel.setMethodCallHandler(new MethodChannel.MethodCallHandler() {
      @Override
      public void onMethodCall(MethodCall methodCall, MethodChannel.Result result) {
        if (methodCall.method.equals("dataProcessor_increment")) {
          if (!methodCall.hasArgument("data")) {
            result.error("dataProcessor_increment", "Send argument as Map<\"data\", int>", null);
            return;
          }
          try {
            Integer data = methodCall.argument("data");
            result.success(goNativeDataProcessor.increment(data.longValue()));
            return;
          } catch (Exception e) {
            result.error("dataProcessor_increment", e.getMessage(), null);
          }
        } else {
          result.notImplemented();
        }
      }
    });
  }
}

Corresponding git-diff

~$ git diff flutter_gonative_app/android/app/src/main/java/com/example/flutter_gonative_app/MainActivity.java
diff --git a/flutter_gonative_app/android/app/src/main/java/com/example/flutter_gonative_app/MainActivity.java b/flutter_gonative_app/android/app/src/main/java/com/example/flutter_gonative_app/MainActivity.java
index 204af8a..8893167 100644
--- a/flutter_gonative_app/android/app/src/main/java/com/example/flutter_gonative_app/MainActivity.java
+++ b/flutter_gonative_app/android/app/src/main/java/com/example/flutter_gonative_app/MainActivity.java
@@ -5,6 +5,8 @@ import android.util.Log;
 
 import gonativelib.DataProcessor;
 import io.flutter.app.FlutterActivity;
+import io.flutter.plugin.common.MethodCall;
+import io.flutter.plugin.common.MethodChannel;
 import io.flutter.plugins.GeneratedPluginRegistrant;
 
 public class MainActivity extends FlutterActivity {
@@ -14,5 +16,27 @@ public class MainActivity extends FlutterActivity {
   protected void onCreate(Bundle savedInstanceState) {
     super.onCreate(savedInstanceState);
     GeneratedPluginRegistrant.registerWith(this);
+
+    MethodChannel methodChannel = new MethodChannel(getFlutterView(), "example.com/gonative");
+    methodChannel.setMethodCallHandler(new MethodChannel.MethodCallHandler() {
+      @Override
+      public void onMethodCall(MethodCall methodCall, MethodChannel.Result result) {
+        if (methodCall.method.equals("dataProcessor_increment")) {
+          if (!methodCall.hasArgument("data")) {
+            result.error("dataProcessor_increment", "Send argument as Map<\"data\", int>", null);
+            return;
+          }
+          try {
+            Integer data = methodCall.argument("data");
+            result.success(goNativeDataProcessor.increment(data.longValue()));
+            return;
+          } catch (Exception e) {
+            result.error("dataProcessor_increment", e.getMessage(), null);
+          }
+        } else {
+          result.notImplemented();
+        }
+      }
+    });
   }
 }

methodChannel.setMethodCallHandler(new MethodChannel.MethodCallHandler() {
    @Override
    public void onMethodCall(MethodCall methodCall, MethodChannel.Result result) {
        ...
    }
});

  • onMethodCall handles specified method call received from Flutter along with arguments. The argument is recommended to be a Map in Flutter/Dart which can be decoded in Android/Java side as shown above. For more information about argument check method-details documentation.

Now, restart the app and when you click the floating-button, Flutter/Dart calls MethodChannel to invokeMethod with current state’s _counter. On receiving the call in though predefined MethodChannel, Android/Java calls corresponding GoNative object to get the output and returns the same to Flutter.

End note

In this article I have used a trivial example to demonstrate how to use Flutter’s platform-channel to call GoNative api in the context of Android. Similar approach can be used in case of iOS.

What we learned in this article :

  • Developing Go library API which can be source compiled for cross platforms.
  • Integration of Go library into Flutter app (Android context).
  • Use platform channel in Flutter app to call platform specific libraries (in our case Go native library).
  • Send argument(s) to Go API from Flutter and return (synchronous) results back to Flutter for UI update.

The source code can be found from Bitbucket/arputer.

#flutter #mobile-apps #go #ios

What is GEEK

Buddha Community

Using Go Library in Flutter

Google's Flutter 1.20 stable announced with new features - Navoki

Flutter Google cross-platform UI framework has released a new version 1.20 stable.

Flutter is Google’s UI framework to make apps for Android, iOS, Web, Windows, Mac, Linux, and Fuchsia OS. Since the last 2 years, the flutter Framework has already achieved popularity among mobile developers to develop Android and iOS apps. In the last few releases, Flutter also added the support of making web applications and desktop applications.

Last month they introduced the support of the Linux desktop app that can be distributed through Canonical Snap Store(Snapcraft), this enables the developers to publish there Linux desktop app for their users and publish on Snap Store.  If you want to learn how to Publish Flutter Desktop app in Snap Store that here is the tutorial.

Flutter 1.20 Framework is built on Google’s made Dart programming language that is a cross-platform language providing native performance, new UI widgets, and other more features for the developer usage.

Here are the few key points of this release:

Performance improvements for Flutter and Dart

In this release, they have got multiple performance improvements in the Dart language itself. A new improvement is to reduce the app size in the release versions of the app. Another performance improvement is to reduce junk in the display of app animation by using the warm-up phase.

sksl_warm-up

If your app is junk information during the first run then the Skia Shading Language shader provides for pre-compilation as part of your app’s build. This can speed it up by more than 2x.

Added a better support of mouse cursors for web and desktop flutter app,. Now many widgets will show cursor on top of them or you can specify the type of supported cursor you want.

Autofill for mobile text fields

Autofill was already supported in native applications now its been added to the Flutter SDK. Now prefilled information stored by your OS can be used for autofill in the application. This feature will be available soon on the flutter web.

flutter_autofill

A new widget for interaction

InteractiveViewer is a new widget design for common interactions in your app like pan, zoom drag and drop for resizing the widget. Informations on this you can check more on this API documentation where you can try this widget on the DartPad. In this release, drag-drop has more features added like you can know precisely where the drop happened and get the position.

Updated Material Slider, RangeSlider, TimePicker, and DatePicker

In this new release, there are many pre-existing widgets that were updated to match the latest material guidelines, these updates include better interaction with Slider and RangeSliderDatePicker with support for date range and time picker with the new style.

flutter_DatePicker

New pubspec.yaml format

Other than these widget updates there is some update within the project also like in pubspec.yaml file format. If you are a flutter plugin publisher then your old pubspec.yaml  is no longer supported to publish a plugin as the older format does not specify for which platform plugin you are making. All existing plugin will continue to work with flutter apps but you should make a plugin update as soon as possible.

Preview of embedded Dart DevTools in Visual Studio Code

Visual Studio code flutter extension got an update in this release. You get a preview of new features where you can analyze that Dev tools in your coding workspace. Enable this feature in your vs code by _dart.previewEmbeddedDevTools_setting. Dart DevTools menu you can choose your favorite page embed on your code workspace.

Network tracking

The updated the Dev tools comes with the network page that enables network profiling. You can track the timings and other information like status and content type of your** network calls** within your app. You can also monitor gRPC traffic.

Generate type-safe platform channels for platform interop

Pigeon is a command-line tool that will generate types of safe platform channels without adding additional dependencies. With this instead of manually matching method strings on platform channel and serializing arguments, you can invoke native class and pass nonprimitive data objects by directly calling the Dartmethod.

There is still a long list of updates in the new version of Flutter 1.2 that we cannot cover in this blog. You can get more details you can visit the official site to know more. Also, you can subscribe to the Navoki newsletter to get updates on these features and upcoming new updates and lessons. In upcoming new versions, we might see more new features and improvements.

You can get more free Flutter tutorials you can follow these courses:

#dart #developers #flutter #app developed #dart devtools in visual studio code #firebase local emulator suite in flutter #flutter autofill #flutter date picker #flutter desktop linux app build and publish on snapcraft store #flutter pigeon #flutter range slider #flutter slider #flutter time picker #flutter tutorial #flutter widget #google flutter #linux #navoki #pubspec format #setup flutter desktop on windows

Terry  Tremblay

Terry Tremblay

1598396940

What is Flutter and why you should learn it?

Flutter is an open-source UI toolkit for mobile developers, so they can use it to build native-looking** Android and iOS** applications from the same code base for both platforms. Flutter is also working to make Flutter apps for Web, PWA (progressive Web-App) and Desktop platform (Windows,macOS,Linux).

flutter-mobile-desktop-web-embedded_min

Flutter was officially released in December 2018. Since then, it has gone a much stronger flutter community.

There has been much increase in flutter developers, flutter packages, youtube tutorials, blogs, flutter examples apps, official and private events, and more. Flutter is now on top software repos based and trending on GitHub.

Flutter meaning?

What is Flutter? this question comes to many new developer’s mind.

humming_bird_dart_flutter

Flutter means flying wings quickly, and lightly but obviously, this doesn’t apply in our SDK.

So Flutter was one of the companies that were acquired by **Google **for around $40 million. That company was based on providing gesture detection and recognition from a standard webcam. But later when the Flutter was going to release in alpha version for developer it’s name was Sky, but since Google already owned Flutter name, so they rename it to Flutter.

Where Flutter is used?

Flutter is used in many startup companies nowadays, and even some MNCs are also adopting Flutter as a mobile development framework. Many top famous companies are using their apps in Flutter. Some of them here are

Dream11

Dream11

NuBank

NuBank

Reflectly app

Reflectly app

Abbey Road Studios

Abbey Road Studios

and many more other apps. Mobile development companies also adopted Flutter as a service for their clients. Even I was one of them who developed flutter apps as a freelancer and later as an IT company for mobile apps.

Flutter as a service

#dart #flutter #uncategorized #flutter framework #flutter jobs #flutter language #flutter meaning #flutter meaning in hindi #google flutter #how does flutter work #what is flutter

Adobe XD plugin for Flutter with CodePen Tutorial

Recently Adobe XD releases a new version of the plugin that you can use to export designs directly into flutter widgets or screens. Yes, you read it right, now you can make and export your favorite design in Adobe XD and export all the design in the widget form or as a full-screen design, this can save you a lot of time required in designing.

What we will do?
I will make a simple design of a dialogue box with a card design with text over it as shown below. After you complete this exercise you can experiment with the UI. You can make your own components or import UI kits available with the Adobe XD.

#developers #flutter #adobe xd design export to flutter #adobe xd flutter code #adobe xd flutter code generator - plugin #adobe xd flutter plugin #adobe xd flutter plugin tutorial #adobe xd plugins #adobe xd to flutter #adobe xd tutorial #codepen for flutter.

Fannie  Zemlak

Fannie Zemlak

1599854400

What's new in the go 1.15

Go announced Go 1.15 version on 11 Aug 2020. Highlighted updates and features include Substantial improvements to the Go linker, Improved allocation for small objects at high core counts, X.509 CommonName deprecation, GOPROXY supports skipping proxies that return errors, New embedded tzdata package, Several Core Library improvements and more.

As Go promise for maintaining backward compatibility. After upgrading to the latest Go 1.15 version, almost all existing Golang applications or programs continue to compile and run as older Golang version.

#go #golang #go 1.15 #go features #go improvement #go package #go new features

Brain  Crist

Brain Crist

1602147600

Flutter App Development Trends 2020

As the new decade dawns upon us, a slew of technologies has been making a lot of noise to grab the developers’ attention. While native app development is going strong, the trade winds are now blowing towards going cross-platform.

Adobe PhoneGap, React Native, Xamarin and Ionic are all leaving no stone unturned to be the undefeated champion of cross-platform development. Still, Google’s Flutter is all set to take them all on at once.

There are a tonne of resources available online to learn about Flutter, and you can start with this step by step flutter guide.

With reduced code development time, increased time-to-market speed, near-native performance, and a bevy of advantages under its hood, Flutter is set to dominate the market this decade.

Before we take a look at trends making the Flutter race ahead in 2020, let us do a quick recap of what Flutter is, for those who have been living under a rock.

#flutter #flutter-for-mobile-app #flutter-app-development #mobile-app-development #flutter-trends #software-development #advantages-of-flutter-mobile #pros-and-cons-of-flutter