Asalin Tsarin Flutter App

Flutter tsari ne na buɗaɗɗen tushen ci gaban app ɗin wayar hannu wanda Google ya ƙirƙira. Yana ba ku damar gina kyawawan ƙa'idodin wayar hannu masu inganci akan duka iOS da Android ta amfani da lambar lambar guda ɗaya. A cikin wannan labarin, za mu bincika ainihin tsarin App Flutter.

Tushen Tsarin Jagora

Lokacin da kuka ƙirƙiri sabon Flutter ƙa'ida, Flutter yana haifar da ainihin tsarin jagora don aikinku. A ƙasa akwai ainihin tsarin tsarin aikace Flutter -aikacen App:

  1. android: Wannan kundin adireshi ya ƙunshi lambar tushe don ɓangaren Android na app, gami da fayilolin AndroidManifest.xml da Java.

  2. ios: Wannan jagorar ya ƙunshi lambar tushe don ɓangaren iOS na app, gami da fayilolin Swift da Objective-C.

  3. lib: Wannan jagorar ya ƙunshi lambar tushen Dart na app. Duk Widgets, ayyuka, da dabaru na app suna zaune a cikin wannan jagorar.

  4. test: Wannan jagorar ya ƙunshi fayilolin gwaji don ƙa'idar.

  5. pubspec.yaml: Wannan fayil ɗin YAML ya ƙunshi bayanai game da abubuwan dogaro da ƙa'idar da sauran daidaitawa.

  6. assets: Wannan kundin adireshi ya ƙunshi albarkatu kamar hotuna, bidiyo, ko fayilolin bayanan da app ɗin ke amfani da shi.

Asalin Tsarin Flutter App

Aikace Flutter -aikacen ya ƙunshi aƙalla Widget ɗaya, wanda shine MaterialApp ko CupertinoApp(idan kuna son yin amfani da ƙirar ƙirar salon iOS). MaterialApp ya ƙunshi MaterialApp, Scaffold, da shafuka ɗaya ko fiye. Scaffold yana ba da ƙa'idar mai amfani ta asali tare da mashaya app da abun ciki mai tsakiya. An gina shafuka ta amfani da daban-daban Widgets don nuna takamaiman abun ciki.

Kuna da 'yanci don tsara tsarin Flutter aikace-aikacen ku don dacewa da takamaiman buƙatun aikinku.

 

Kammalawa

Tsarin Flutter aikace-aikacen yana da sassauƙa sosai kuma mai sauƙin kusanci da keɓancewa. Tare da ainihin kundayen adireshi da tsarin da aka ambata a sama, kuna shirye don fara gina Flutter ƙa'idar ku ta farko.