Archive April 17, 2021

Use MySQL

You can upload and share everything relating to use MySQL for database in Flutter. You also can download it, if it’s useful to you.

https://www.coderzheaven.com/2019/09/28/flutter-datatable-mysql/

CRUD MYSQL

Error: Bad state: Insecure HTTP is not allowed by platform:

Just add in android/app/src/main/AndroidManifest.xml:

<uses-permission android:name="android.permission.INTERNET" /> <!-- This Line -->
<application
        android:name="io.flutter.app.FlutterApplication"
        android:label="receipt"
        android:usesCleartextTraffic="true" <!-- This Line -->
        android:icon="@mipmap/ic_launcher">

Login

You can upload and share everything relating to the login/authentication in Flutter. You also can download it, if it’s useful to you.

GUI for login without database

Completed project file is shared in the project file above.

Login and register using MySQL as database

Notes: Check your computer IP address if you want to use localhost, go to command prompt or type CMD in search then type “ipconfig”. Select number with IPv4 Address such as 192.168.110.105

Icon

You can upload and share everything relating to include icon in Flutter. You also can download it, if it’s useful to you.

Note: If you use icon creator to create the icon, the icon sometime will be smaller in the phone, so that you need to adjust manually using “configure image assets”. By using launcher icon generator, you can adjust the size of your icon before export to .zip file contain all the size needed and replaced in folder “RES”. I think launcher icon generator much more easier.