{"id":41856,"date":"2021-03-04T14:40:29","date_gmt":"2021-03-04T14:40:29","guid":{"rendered":"http:\/\/icloud.pe\/blog\/?guid=7686216e36ad0d6cbe139c2300b56ed3"},"modified":"2021-03-04T14:40:29","modified_gmt":"2021-03-04T14:40:29","slug":"google-launches-flutter-2-for-cross-platform-app-development","status":"publish","type":"post","link":"https:\/\/icloud.pe\/blog\/google-launches-flutter-2-for-cross-platform-app-development\/","title":{"rendered":"Google launches Flutter 2 for cross-platform app development"},"content":{"rendered":"<p><span class=\"field field-name-field-author field-type-node-reference field-label-hidden\"><br \/>\n      <span class=\"field-item even\"><a href=\"https:\/\/www.cloudpro.co.uk\/authors\/keumars-afifi-sabet\">Keumars Afifi-Sabet<\/a><\/span><br \/>\n  <\/span><\/p>\n<div class=\"field field-name-field-published-date field-type-datetime field-label-hidden\">\n<div class=\"field-items\">\n<div class=\"field-item even\"><span class=\"date-display-single\">4 Mar, 2021<\/span><\/div>\n<\/p><\/div>\n<\/div>\n<p class=\"short-teaser\">\n<a href=\"https:\/\/www.cloudpro.co.uk\/\" title=\"\" class=\"combined-link\"><\/a><\/p>\n<div class=\"field field-name-body\">\n<p>Google has upgraded its Flutter toolkit to allow mobile developers to seamlessly port native apps across a breadth of <a href=\"https:\/\/www.itpro.co.uk\/operating-systems\/24841\/windows-vs-linux-whats-the-best-operating-system\"  data-cke-saved-href=\"https:\/\/www.itpro.co.uk\/operating-systems\/24841\/windows-vs-linux-whats-the-best-operating-system\">operating systems<\/a> and web browsers, as well as devices such as TVs, cars, and smart home appliances.<\/p>\n<p>Flutter,\u00a0an open source software development kit (SDK)\u00a0<a href=\"https:\/\/www.itpro.co.uk\/mobile\/32523\/googles-flutter-10-wants-to-take-compromise-out-of-app-development\"  data-cke-saved-href=\"https:\/\/www.itpro.co.uk\/mobile\/32523\/googles-flutter-10-wants-to-take-compromise-out-of-app-development\">launched by Google\u00a0in December 2018<\/a>,\u00a0allows developers to build mobile apps across both Android and iOS devices from a single codebase using the Dart language.<\/p>\n<p>The next generation, dubbed Flutter 2, is a logical extension of this principle, with developers able to programme native apps across not just Android and iOS but also Windows, macOS, and Linux systems too. This is alongside <a href=\"https:\/\/www.itpro.co.uk\/development\/user-experience-ux\/357832\/make-the-web-accessible\"  data-cke-saved-href=\"https:\/\/www.itpro.co.uk\/development\/user-experience-ux\/357832\/make-the-web-accessible\">web-based experiences<\/a> across Chrome, Firefox, Safari, and Edge, as well as the operating systems powering IoT and smart devices.<\/p>\n<p>\u201cOur goal is to fundamentally shift how developers think about building apps, starting not with the platform you\u2019re targeting but rather with the experience you want to create,\u201d Google said in its Developer blog.<\/p>\n<p>\u201cIn Flutter 2, released today, we\u2019ve broadened Flutter from a mobile framework to a portable framework, unleashing your apps to run on a wide variety of different platforms with little or no change.\u201d<\/p>\n<div id=\"file-7971\" class=\"file file-image file-image-png file-content-full-width\">\n<div class=\"content\">    <img decoding=\"async\" src=\"https:\/\/cdn1.cloudpro.co.uk\/sites\/cloudprod7\/files\/styles\/insert_main_wide_image\/public\/2021\/03\/flutter_2_screenshot.png?itok=UXrjow9_\" alt=\"\" \/>  <\/div>\n<\/div>\n<p><a href=\"https:\/\/www.itpro.co.uk\/android\/28189\/how-to-build-android-apps\"  data-cke-saved-href=\"https:\/\/www.itpro.co.uk\/android\/28189\/how-to-build-android-apps\">Developing for Android devices with Android Studio<\/a>, an integrated development environment (IDE), differs from developing with Flutter, in that it\u2019s a Java-incorporated development workbench for creators to develop and debug their source code for one platform.<\/p>\n<p>Using Android Studio means developers can\u2019t build apps native to iOS as well as Android \u2013\u00a0and must jump through hoops to convert their codebase to be compatible with iPhones, or rewrite them from scratch.<\/p>\n<p>Flutter, by contrast, was <a href=\"https:\/\/www.itpro.co.uk\/mobile\/32523\/googles-flutter-10-wants-to-take-compromise-out-of-app-development\"  data-cke-saved-href=\"https:\/\/www.itpro.co.uk\/mobile\/32523\/googles-flutter-10-wants-to-take-compromise-out-of-app-development\">launched with native cross-platform development in mind<\/a>, with app creators able to build applications for both iOS and Android using a single codebase. Features such as platform APIs, third-party SDKs and reusable <a href=\"https:\/\/www.itpro.co.uk\/operating-systems\/30248\/what-is-a-graphical-user-interface\"  data-cke-saved-href=\"https:\/\/www.itpro.co.uk\/operating-systems\/30248\/what-is-a-graphical-user-interface\">user interface (UI)<\/a> blocks lend themselves to this aim.<\/p>\n<p>Google also touts Flutter as allowing you to build aesthetically-pleasing apps at-pace, in addition to making changes as your app\u2019s running in real-time with the \u2018hot reload\u2019 feature. The ecosystem of Flutter-developed apps includes roughly 150,000 services including apps such as WeChat and Yandex Go.<\/p>\n<p><a href=\"https:\/\/developers.googleblog.com\/2020\/09\/google-pay-picks-flutter-to-drive-its.html\"  data-cke-saved-href=\"https:\/\/developers.googleblog.com\/2020\/09\/google-pay-picks-flutter-to-drive-its.html\">Google Pay even switched to Flutter<\/a>\u00a0in September last year to achieve improvements in productivity and quality. By unifying the iOS and Android codebases, the development team removed roughly 500,000 lines of code. There\u2019s also been a reported increase in the efficiency for\u00a0engineers, with a reduction in work needed around releases such as security reviews and experimentation, given two codebases have been contracted to one.<\/p>\n<p>Desktop support was added to an earlier alpha release of Flutter, but this has just been moved into the toolkit\u2019s \u2018stable\u2019 channel, meaning it\u2019s now generally available.<\/p>\n<p>To make it happen, Google partnered with Canonical, the company that publishes <a href=\"https:\/\/www.itpro.co.uk\/software\/linux\/357108\/ubuntu-linux-review-the-granddaddy-of-desktop-linux\"  data-cke-saved-href=\"https:\/\/www.itpro.co.uk\/software\/linux\/357108\/ubuntu-linux-review-the-granddaddy-of-desktop-linux\">Ubuntu<\/a>, with the organisation\u2019s engineers contributing code to support development and deployment on Linux installations.<\/p>\n<p>Google has\u00a0also expanded its\u00a0partnership with Microsoft, with the Windows developer releasing contributions to the Flutter engine to support foldable Android devices, including new design patterns and functionality.<\/p>\n<p>With Flutter 2, app developers will also find added <a href=\"https:\/\/static.itpro.co.uk\/node\/355040\"  data-cke-saved-href=\"https:\/\/static.itpro.co.uk\/node\/355040\">support for the web<\/a> with a focus on progressive web apps (PWAs) as well as single-page apps (SPAs) and bringing existing Flutter mobile apps to the web with shared code.<\/p>\n<p>Finally, a partnership with Toyota paves the way for writing in-vehicle software using Flutter, with the car manufacturer using Flutter\u2019s embedder API to tailor Flutter for the unique needs of its vehicles. <\/p>\n<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>      Keumars Afifi-Sabet<\/p>\n<p>        4 Mar, 2021    <\/p>\n<p>      Google has upgraded its Flutter toolkit to allow mobile developers to seamlessly port native apps across a breadth of operating systems and web browsers, as well as devices such as TVs, ca&#8230;<\/p>\n","protected":false},"author":433,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-41856","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/posts\/41856","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/users\/433"}],"replies":[{"embeddable":true,"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/comments?post=41856"}],"version-history":[{"count":1,"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/posts\/41856\/revisions"}],"predecessor-version":[{"id":41857,"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/posts\/41856\/revisions\/41857"}],"wp:attachment":[{"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/media?parent=41856"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/categories?post=41856"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/tags?post=41856"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}