1 / 7

Why Android developers should pay attention to Flutter in 2020

Visit https://www.xirainfotech.com for Digital Marketing Company, Digital Advertising Company, SEO Service Provider, SEO Company, Social Media Marketing Company, Web Design Development Company, Web Design Company, Graphics Design Company, Software Company, Software Development Company, Mobile Apps Development Company.

xirainfoin
Download Presentation

Why Android developers should pay attention to Flutter in 2020

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Why Android developers should pay attention to Flutter in 2020 Flutter vs native Android app development There is no doubt that native Android apps developed with Android Studio are great in features and slick. On the other hand, apps developed with cross-platform solutions can be easily spotted and it feels like there is something missing. However, ever since Flutter apps landed in app stores, there is no way to tell that the apps were built with Flutter. The apps feel so slick, native and smooth. So what is it about Flutter that makes apps feel more or less native? Quite a few native Android developers have expressed their opinions on Flutter online. One of the articles here explains an Android developer’s view on Flutter. Also, there’s hot discussion on Quora if Flutter is going to replace Java and native Android development. Looking at all these articles, it’s clear that native Android developers cannot ignore Flutter for sure. Flutter is surely different from the native Android development tools. Flutter’s official documentation has a clear guide on Flutter for Android developers, mapping the concepts of native Android development to Flutter. Let’s compare Flutter with native Android development using some basic criteria: Technical architecture

  2. Developer productivity UI components Testing support CI/CD support Technical architecture The tech stack used for native Android development and Flutter is completely different. Although Flutter and Android are being developed at Google, the technical architecture of both platforms is completely different. Flutter uses Dart as the programming language, while native Android development uses Java or Kotlin. In terms of IDE, Android Studio can be used for both Flutter and native Android app development. However, Flutter apps can also be developed in lightweight editors, like Sublime Text, Atom or VIM, or in an IDE like IntelliJ Idea. As we know, native apps built with Java/Kotlin are slick and fast as all the components are built natively. Flutter uses the Dart framework and often does not require the bridge to communicate with the native modules. The architecture of the Flutter engine is explained in detail in GitHub Wiki here. In short, Flutter has everything needed for native app development in the Flutter engine itself. The native Android developer’s guide explains the entire ecosystem of Android app development.

  3. Developer productivity While developing apps natively, Android engineers need to use Android Studio and the native build and platform tools provided by Android Studio. Android Studio has all the SDK tools embedded within the IDE. These tools also need the emulators or Android Virtual devices to run the apps. Every time developers make changes to the app, they have to rebuild the app or third-party dependencies in some cases to see the changes in the emulator or on devices. As a native Android developer, you might have experienced this slow process as Gradle builds can take time. In Flutter, there is the hot reload option. When a developer makes any changes, the changes appear in the emulator or devices instantly. However, as the app grows in size, developers need to adopt new techniques to use this feature effectively. Dependency management for native Android apps is handled by Gradle. There are loads of Java and Kotlin packages available in the market and Gradle can handle them effectively in the Android ecosystem. Flutter uses its own dependency management system called Pub. The Pub Package manager is inbuilt to the Flutter apps, so that it’s easy to get new dependencies as needed for development. On another note, Dart is not a common programming language and there is a lack of support for it in many IDEs and text editors. It may be a steep learning curve for the developers to learn the new language. While Java has been there for years and Kotlin is a type-safe language, native languages feel much more friendly with Android Studio. There is lots of community support for native languages as well.

  4. UI components Front-end developers spend most of the time on building the UI. The native UI components provided by Google to build UI are so powerful and well documented. The UI can be also built using the interface builder in Android Studio. With that feature, UI can be built faster using the native development tools. Android UI docs cover all the basic information needed to build all kinds of user interface elements. Flutter UI engine is different, Flutter apps run on its rendering engine and its framework. Flutter uses the concept of widgets which can be used to build complex UIs. In short, the Flutter UI is basically a tree of stateless or stateful widgets. There are loads of widgets in the catalog available to build complex UIs which support both Material Components for Android and Cupertino for iOS. The Flutter layout and widgets are pixel perfect as well. Testing support Native Android tools have amazing support for testing. Native apps can be tested easily from Android studio itself or from command line using Gradle. You can add unit, integration, instrumented and UI tests for Android apps. There are so many Java and Kotlin frameworks like JUnit available for lower level testing and Espresso is supported for UI testing. There is painless support for mocking things with frameworks like Mockito. Android testing has been extensively covered in documentation, you can refer to the different levels of testing Android apps here. Flutter provides a solid testing framework which allows developers to write tests at unit, functional and UI level. Widget testing is one cool feature that Flutter provides to run UI

  5. tests as fast as unit tests. Flutter has cool documentation on how to test Flutter apps at different levels with example code. Flutter integration tests are similar to Xcode UI tests which go through the UI to perform specific operations. The Flutter integration tests run in a separate process and can be run on real devices or on simulators or emulators. Flutter provides a separate package, Flutter Driver, to drive these tests. All in all, Flutter is an option for businesses to develop native’ish iOS and Android apps with the same source code and with fewer resources. As of now, there are so many cross- platform mobile app development frameworks that have come and gone, so native app development remains a solid choice for developing mobile apps. Flutter seems to be totally different from all the other cross-platform solutions. Futter apps look native and slick just like the native apps. As an Android developer, you shouldn’t ignore Flutter. We can’t predict the future, but who knows, Flutter might just as well be the first choice for businesses to develop Android apps. There are some potential reasons for that. Rise of Fuchsia This is no longer a secret that Google is working on another operating system which is known as Fuchsia. Flutter is being developed with Fuchsia in mind, so there might be a possibility that Fuchsia will replace both Chrome and Android in the future, read more about this scenario in this article. That’s some food for thought for native Android developers. Growing migration rate & Flutter in existing apps Some of the articles online indicate that companies have already started porting their native apps to Flutter. For example, there’s a good article about porting a 75-000 line native iOS

  6. app to Flutter if you want to read about the process of migration. Some of the teams are using Flutter in their existing Android apps, while others completely migrate apps to Flutter. It’s clear that Flutter is changing the view on cross-platform mobile app development because of ease of development, testing and releasing the mobile apps. Google’s take on Android It’s also important to see Google’s take on maintaining both a native and a cross-platform mobile development framework. We should definitely keep an eye on the announcements at the next Google I/O conference. Confusion about native Android development There’s a lot of confusion among the developers about why native Android development is so complicated, confusing and less performant. This article clearly shows this confusion among proficient developers. Considering the number of users and the revenue that companies earn from Android apps, it’s too complex and hard to maintain. Flutter can be the solution to this problem as it can be used to also build apps for iOS and potentially for Fuchsia in the future. Prediction on cross-platform development Cross-platform development is expected to reach its height in the coming years. Some experts have already predicted that Flutter will be the future of mobile app development. Whether to pay attention to Flutter or not is a personal choice, but it’s safe to say that Flutter has entered the cross-platform app development race very strongly and it’s here to stay for long term. Visit https://www.xirainfotech.com for Digital Marketing Company, Digital Advertising Company, SEO Service Provider, SEO Company, Social Media Marketing Company, Web Design Development Company,

  7. Web Design Company, Graphics Design Company, Software Company, Software Development Company, Mobile Apps Development Company.

More Related