This is the source code for the frontend development of the No Stunting App.
This documentation is divided into three sections, including:
After cloning this repository, you may setup several requirement, there are:
- Android Studio and JDK
- Flutter SDK
To check readiness of your machine, simply you can write command flutter doctor -v
, then you will see the result of flutter issues
PS D:\Google DSC Lead\GDSC Solution Challenge\NoStunting\fe-no-stunting> flutter doctor -v
[√] Flutter (Channel stable, 3.3.7, on Microsoft Windows [Version 10.0.19045.2251], locale en-US)
• Flutter version 3.3.7 on channel stable at D:\Installer\Flutter Installer\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision e99c9c7cd9 (4 months ago), 2022-11-01 16:59:00 -0700
• Engine revision 857bd6b74c
• Dart version 2.18.4
• DevTools version 2.15.0
[√] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
• Android SDK at C:\Users\Lenovo\AppData\Local\Android\Sdk
• Platform android-33, build-tools 31.0.0
• ANDROID_HOME = C:\Users\Lenovo\AppData\Local\Android\Sdk
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 11.0.12+7-b1504.28-7817840)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.11.3)
• Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
• Visual Studio Community 2019 version 16.11.31702.278
• Windows 10 SDK version 10.0.19041.0
[√] Android Studio (version 2021.2)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.12+7-b1504.28-7817840)
[√] VS Code, 64-bit edition (version 1.76.0)
• VS Code at C:\Program Files\Microsoft VS Code
• Flutter extension version 3.60.0
[√] Connected device (3 available)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.19045.2251]
• Chrome (web) • chrome • web-javascript • Google Chrome 111.0.5563.64
• Edge (web) • edge • web-javascript • Microsoft Edge 110.0.1587.63
[√] HTTP Host Availability
• All required HTTP hosts are available
• No issues found!
Visual Studio Code will be top performance for Flutter Development when you add "Flutter Extension", simply you need to install it.
Then, open this repository in Visual Studio Code and open /lib/main.dart.
At the bottom toolbar, you will see Connected Device Tool
Click it, and you can choose your device.
Then you can press F5 from your keyboard.
Well, in flutter, you only need to write command flutter build apk
.
PS D:\Google DSC Lead\GDSC Solution Challenge\NoStunting\fe-no-stunting> flutter build apk
Building with sound null safety
Parameter format not correct -
Running Gradle task 'assembleRelease'... 55.7s
√ Built build\app\outputs\flutter-apk\app-release.apk (23.8MB).
When process already finished, you can open build\app\outputs\flutter-apk\app-release.apk
And install it on your Android Devices.