Google e hlahisitse moralo oa Flutter 2 le puo ea Dart 2.12

Google e hlahisitse moralo oa sebopeho sa mosebelisi oa Flutter 2, o tšoaileng phetoho ea morero ho tloha moralong oa ho nts'etsapele lits'ebetso tsa mehala hore e be moralo o akaretsang oa ho theha mofuta ofe kapa ofe oa lenaneo, ho kenyeletsoa mananeo a komporo le lits'ebetso tsa webo.

Flutter e bonoa e le mokhoa o mong oa React Native mme e o lumella ho hlahisa lits'ebetso tsa li-platform tse fapaneng tse ipapisitseng le khoutu e le 'ngoe, ho kenyeletsoa iOS, Android, Windows, macOS le Linux, hammoho le lits'ebetso tse sebetsang ho sebatli. Lisebelisoa tsa mehala tse neng li ngotsoe pele ho Flutter 1 li ka fetoloa hore li sebetse komporong le ho Webosaete ka mor'a ho fetohela ho Flutter 2 ntle le ho ngola khoutu hape.

Karolo e ka sehloohong ea khoutu ea Flutter e sebelisoa ka puo ea Dart, 'me enjene ea nako ea ho sebetsa bakeng sa ho etsa likopo e ngotsoe ka C ++. Ha u etsa lits'ebetso, ho kenyelletsa puo ea tlhaho ea Flutter ea Dart, u ka sebelisa sebopeho sa Dart Foreign Function ho letsetsa khoutu ea C/C++. Ts'ebetso e phahameng ea ts'ebetso e fihlelleha ka ho bokella lits'ebetso ho khoutu ea matsoalloa bakeng sa liforomo tse shebiloeng. Tabeng ena, lenaneo ha le hloke ho tsosolosoa ka mor'a phetoho e 'ngoe le e' ngoe - Dart e fana ka mokhoa o chesang oa ho tsosolosa o u lumellang ho etsa liphetoho ho sesebelisoa se sebetsang 'me hang-hang u hlahlobe sephetho.

Flutter 2 e fana ka ts'ehetso e felletseng bakeng sa ho theha lits'ebetso tsa Webosaete, tse loketseng ts'ebetsong ea tlhahiso. Maemo a mararo a mantlha a ho sebelisa Flutter bakeng sa Marang-rang a boletsoe: ho nts'etsapele lits'ebetso tsa webo tse ikemetseng (PWA, Progressive Web Apps), ho theha lits'ebetso tsa leqephe le le leng (SPA, lits'ebetso tsa leqephe le le leng) le ho fetolela lits'ebetso tsa mohala hore e be lits'ebetso tsa webo. Har'a likarolo tsa lisebelisoa tsa nts'etsopele bakeng sa Websaete ke tšebeliso ea mekhoa ea ho potlakisa tlhahiso ea litšoantšo tsa 2D le 3D, tlhophiso e feto-fetohang ea likarolo tse skrineng le enjene ea ho fana ka CanvasKit e hlophisitsoeng ho WebAssembly.

Ts'ehetso ea app ea Desktop e ho beta 'me e tla tsitsisoa hamorao selemong sena tokollong e tlang. Canonical, Microsoft le Toyota li phatlalalitse tšehetso bakeng sa nts'etsopele e sebelisang Flutter. Canonical e khethile Flutter joalo ka moralo oa mantlha oa lits'ebetso tsa eona hape e sebelisa Flutter ho nts'etsapele sesebelisoa se secha sa Ubuntu. Microsoft e hlophisitse Flutter bakeng sa lisebelisoa tse phuthoang tse nang le li-skrini tse ngata, joalo ka Surface Duo. Toyota e rera ho sebelisa Flutter bakeng sa litsamaiso tsa infotainment ka koloing. Khetla ea mosebelisi ea sistimi e sebelisang Fuchsia microkernel e ntlafalitsoeng ke Google le eona e hahiloe motheong oa Flutter.

Google e hlahisitse moralo oa Flutter 2 le puo ea Dart 2.12

Ka nako e ts'oanang, ho ile ha hatisoa ho lokolloa ha puo ea lenaneo la Dart 2.12, moo nts'etsopele ea lekala le entsoeng bocha la Dart 2 le ntse le tsoela pele. e ka hlalosoa ka bo eona, kahoo ho hlalosa mefuta ha se tlamo, empa ho thaepa ka matla ha ho sa sebelisoa 'me mofuta o baliloeng qalong o abeloa ho feto-fetoha le tlhahlobo e tiileng ea mofuta o sebelisoang hamorao).

Ho lokolloa hoa hlokomeleha bakeng sa ho tsitsisa ha mokhoa oa ts'ireletso oa Null, o tla thusa ho qoba likotsi tse bakoang ke boiteko ba ho sebelisa mefuta-futa eo boleng ba eona bo sa hlalosoang le ho behoa ho Null. Mokhoa o fana ka maikutlo a hore mefuta e ke ke ea ba le boleng ba lefeela ntle le haeba e abetsoe ka ho hlaka boleng ba lefeela. Mokhoa o hlompha ka thata mefuta e fapaneng, e lumellang moqapi ho sebelisa lintlafatso tse eketsehileng. Ho lumellana ha mofuta ho hlahlojoa ka nako ea ho bokella, mohlala, haeba u leka ho fana ka boleng ba "Null" ho feto-fetoha le mofuta o sa boleleng boemo bo sa hlalosoang, joalo ka "int", phoso e tla bontšoa.

Ntlafatso e 'ngoe ea bohlokoa ho Dart 2.12 ke ts'ebetsong e tsitsitseng ea laeborari ea FFI, e u lumellang hore u thehe khoutu ea ts'ebetso e phahameng eo ho eona u ka fihlelang li-API ho C. E ntlafalitse ts'ebetso le boholo. Lisebelisoa tsa ntlafatso tse ekelitsoeng le sistimi ea profil ea khoutu e ngotsoeng ho sebelisoa Flutter, hammoho le li-plugins tse ncha tsa ho nts'etsapele lits'ebetso tsa Dart le Flutter bakeng sa Android Studio/IntelliJ le VS Code.

Google e hlahisitse moralo oa Flutter 2 le puo ea Dart 2.12


Source: opennet.ru

Eketsa ka tlhaloso