Open fleetimee opened 1 year ago
Installing Flutter with Android Studio especially when you are limited by hardware resources may not be an optimal thing to do. Alternative to Android Studio, A great choice is VSCode. It is light, simple and fast. In this article, you'll learn how to setup Flutter without using Android Studio. So you can get started with VSCode to Flutter.
Go to this site and download git for your platform
Begin the installation process and follow according to the installer
You can also define custom path
For eg: W:\Utilities\git
Download Flutter
Extract and place it in certain folder. For eg: W:\Utilities\flutter
Go inside Flutter installed Location and navigate to bin folder
Copy the path. For eg W:\Utilities\flutter\bin
Search for environment variable in search box, click on "Edit the system environment variable" then on Environment Variable. Under "User variable" section click on path then on edit. Click new and paste the path you copied.
Press ok > ok > ok
Download openjdk8 for your device. For Windows 64bit, Windows 32bit .
Extract and Rename the folder to openjdk8. For eg: W:\Utilities\openjdk8
Copy the path.
Search for environment variable in search box, click on "Edit the system environment variable" then on Environment Variable. Under "System variable" section click on new.
Set Variable name: JAVA_HOME and Variable value: W:\Utilities\openjdk8 and click ok
Again Under "System Variable", click on path then on edit. Click new and add %JAVA_HOME%\bin
Press ok>ok>ok
Go to android studio. Under "Command line tools only", download the zip folder.
Extract the command line tools and place in certain folder . For eg: W:\Utilities\Android
Go inside bin folder of Android (W:\Utilities\Android\bin) and open command prompt in there
See build-tools versions releases and choose your preferred version. At the time of this writing latest release is 30.0.0.
Type this command and type y
sdkmanager.bat "build-tools;30.0.0" ./sdk_path = ../
See Platforms versions releases and choose your preferred version or API Level. At the time of this writing latest release is 30.
Type this command
sdkmanager.bat "platforms;android-30" ./sdk_path = ../
Above command will download and install the SDK platform inside Android folder.
Search for environment variable in search box, click on "Edit the system environment variable" then on Environment Variable. Under "System variable" section click on new.
Set Variable name: ANDROID_HOME and Variable value: W:\Utilities\Android and click ok
Under "System variable", click on path. Click on new and add this %ANDROID_HOME%\platform-tools
Open Command Prompt
Run and keep on typing y
flutter doctor --android-licenses
Run and see if there's any issue
flutter doctor
Now Enjoy Flutter without android studio
You can now use VSCode with dart and flutter extensions
I recommend using web browser as an emulator rather than using android emulator because it requires comparatively less resources.
Currently the list view are using infinite list
Instead using infinite list i want to used pagination with number in the bottom of the list
The api already supported pagination out of the box
{{baseUrl}}api/v1/debiturs/?limit=7&page=1