Flutter buɗaɗɗen tushe, tsarin ci gaban aikace-aikacen wayar hannu da Google ke haɓakawa. Yana ba ku damar gina kyawawan ƙa'idodin wayar hannu masu inganci akan duka iOS da Android ta amfani da lambar lambar guda ɗaya. Kafin nutsewa cikin haɓaka app ta hannu tare da Flutter, kuna buƙatar shigar da Flutter SDK akan kwamfutarka. A cikin wannan labarin, za mu jagorance ku ta hanyar shigarwa Flutter da gina Hello World ƙa'idar "" ta farko.
Mataki 1: Shigar Flutter
Don shigarwa Flutter, ziyarci gidan yanar gizon hukuma Flutter a https://flutter.dev kuma zazzage sigar da ta dace da tsarin aikin ku(Windows, macOS, ko Linux). Da zarar an sauke, buɗe fayil ɗin ZIP kuma sanya Flutter babban fayil ɗin a wurin da kuke so.
Mataki 2: Saita Flutter Muhalli
Bayan shigarwa Flutter, kuna buƙatar saita masu canjin yanayi don Flutter SDK. Ƙara hanyar zuwa Flutter babban fayil zuwa tsarin tsarin ku na PATH, don haka za ku iya samun damar Flutter CLI daga ko'ina a cikin tashar.
Mataki 3: Duba shigarwa
Don tabbatar da Flutter an shigar daidai, buɗe tashar kuma gudanar da umarni flutter doctor
. Idan ka karɓi saƙon " Flutter yana aiki lafiya," yana nufin Flutter an samu nasarar shigar kuma a shirye don amfani.
Mataki 4: Ƙirƙiri Hello World App
Yanzu, bari mu ƙirƙiri Hello World ƙa'idar mu ta farko tare da Flutter. Bude tashar kuma gudanar da umarni mai zuwa:
flutter create hello_world
Umurnin da ke sama zai ƙirƙiri kundin adireshi mai suna "hello_world" mai ɗauke da ainihin tsarin aikin Flutter app.
Mataki 5: Shigar da Hello World App
Don gudanar da Hello World app ɗin, kewaya cikin kundin adireshin "hello_world" kuma gudanar da umarni:
cd hello_world
flutter run
Umurnin flutter run
zai ƙaddamar da ƙa'idar akan ko dai na'urar kama-da-wane ko na'urar gaske idan kun haɗa ta da kwamfutarka.
Kammalawa
A cikin wannan labarin, kun koyi yadda ake sakawa da ƙirƙirar ƙa'idar Flutter ku ta farko. Hello World Yanzu kun shirya don fara tafiya mai ban sha'awa na haɓaka app ta hannu tare da Flutter. Ci gaba da bincike da gina ƙa'idodi masu ban mamaki tare da Flutter !