GithubHelp home page GithubHelp logo

flutter's Introduction

Flutter

How to switch channels

  • There are 4 channels in flutter, master, dev, beta and stable.
$ flutter channel stable
$ flutter channel master
$ flutter channel dev
$ flutter channel beta

Flutter Check Tool

$ flutter doctor

Splash Screen

  • Android: Update launch_background.xml (android/app/src/main/res/drawable/launch_background.xml)
<?xml version="1.0" encoding="utf-8"?>
<!-- Modify this file to customize your launch splash screen -->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:drawable="@android:color/black" /> <!-- You can set background color of the splash screen -->

    <!-- You can insert your own image assets here -->
    <item>
        <bitmap
            android:gravity="center"
            android:src="@drawable/futurizr" /> <!-- you can add image file. please do not add extension of the image file, just add file name -->
    </item>
</layer-list>

Android Launcher Icon Size

  • LDPI : 36 x 36
  • MDPI : 48 x 48
  • HDPI : 72 x 72
  • XHDPI : 96 x 96
  • XXHDPI : 144 x 144
  • XXXHDPI : 192 x 192.
  • WEB : 512 x 512

Android / iOS Icon & Splash Image Size

  • LDPI : 36 x 36 px

  • MDPI : 48 x 48 px

  • HDPI : 72 x 72 px

  • XHDPI : 96 x 96 px

  • XXHDPI : 144 x 144 px

  • XXXHDPI : 192 x 192 px

  • Market : 512 x 512 px

  • Android Splash Image Size

  • LDPI : 200 x 320 px / 320 x 200 px

  • MDPI : 320 x 480 px / 480 x 320 px

  • HDPI : 480 x 800 px / 800 x 480 px

  • XHDPI : 720 x 1280 px / 1280 x 720 px

  • XXHDPI : 960 x 1600 px / 1600 x 960 px

  • XXXHDPI : 1280 x 1920 px / 1920 x 1280 px

  • iOS Splash Image Size

  • iPad(1x - Non-Retina) 768 x 1024 px / 1024 x 768 px

  • iPad(2x - Retina) 1536 x 2048 px / 2048 x 1536 px

  • iPhone(1x - Non-Retina) 320 x 480 px / 480 x 320 px

  • iPhone(2x - Retina) 640 x 960 px / 960 x 640 px

  • iPhone5(2x - Retina) 640 x 1136 px / 1136 x 640 px

  • iPhone6(2x) 750 x 1334 px / 1334 x 750 px

  • iPhone6Plus(3x) 1242 x 2208 px / 2208 x 1242 px

Flutter Build APK Checklist

  • Launcher Icon (Adaptive Icon)

  • Launcher Icon (Non-Adaptive Icon)

  • Create a keystore You can create the key in specific location as below

$ keytool -genkey -v -keystore D:/key/key.jks -keyalg RSA -keysize 2048 -validity 10000 -alias key
  • Create key.properties File under android folder
storePassword=password
keyPassword=password
keyAlias=key
storeFile=D:/key/key.jks
  • Build APK
$ flutter build appbundle

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.