Flutter да ёзилган Android иловаларни ios га ўгириш, иловани Play Market ва Apple Store га жойлаш
Download 205.22 Kb.
|
Android иловалар
- Bu sahifa navigatsiya:
- App iconini o’zgartirish, splash oynani qo’shish, app nomini o’zgartirish Ilova belgisini sozlash
Flutter да ёзилган Android иловаларни iOS га ўгириш, иловани Play Market ва Apple Store га жойлаш Assalomu alaykum bugun darsimizda biz flutterda yozilgan ilovabi appstore va playstore ga joylashni o’rganamiz . Bu ishni qilishdan avval siz ilovadagi bazi narsalarga etibor berishizni so’raymiz App iconini o’zgartirish, splash oynani qo’shish, app nomini o’zgartirish Ilova belgisini sozlash:: Ilova belgisini o'rnatish uchun bizga app iconi tasviri kerak bo'ladi: 1. Loyihamizga ichida assets papkasini yaratamiz va uning ichida ilova belgisini saqlaymiz. 2. Pubspec.yaml faylingizga o'ting va ushbu kodni qo'shing flutter_icons: android: true ios: true image_path: "assets/app_icon.png" //use_your_image_name 3. va manashu buyruqni termianlda ishga tushuramiz: flutter packages pub run flutter_launcher_icons:main bizning appni iconi o’zgardi. Splash Oynani Qoshish:: Taymer vidjeti - bu ikki vazifa o'rtasida kechikish qo'shish uchun ishlatilishi mumkin bo'lgan vidjet. Bundan tashqari, bir necha soniya davomida ekranni qo'shish uchun ham foydalanishimiz mumkin. import 'dart:async'; import 'package:flutter/material.dart'; import 'homePage.dart'; class SplashScreen extends StatefulWidget { @override _SplashScreenState createState() => _SplashScreenState(); class _SplashScreenState extends State startTime() async { var _duration = Duration(seconds: 4); return Timer(_duration, navigationPage); void navigationPage() { Navigator.of(context).pushReplacementNamed(HomePage.routeName); @override void initState() { super.initState(); startTime(); @override Widget build(BuildContext context) { return Scaffold( body: Stack( children: [ Container( height: MediaQuery.of(context).size.height, child: Image.asset( 'assets/splashScreen.jpeg', fit: BoxFit.cover, Container( height: MediaQuery.of(context).size.height, color: Colors.blue.withOpacity(0.2), Positioned( top: MediaQuery.of(context).size.height * 0.9, left: MediaQuery.of(context).size.width * 0.15, child: Row( children: Image.asset( 'assets/bottomSplashImage.png', width: 50, height: 50, Column( children: Text( "ENERGY & PRESISTENCE", style: TextStyle( color: Colors.white, fontWeight: FontWeight.bold, fontSize: 20), Text( "CONQUER ALL THINGS", style: TextStyle( color: Colors.white, fontWeight: FontWeight.bold, fontSize: 15, wordSpacing: 2, letterSpacing: 4), splash oynani yuqoridagi kod orqali qo’shib olamiz Download 205.22 Kb. Do'stlaringiz bilan baham: |
Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling
ma'muriyatiga murojaat qiling