- Flutter SDK (Comes with Dart SDK)
- Java LTS
- Android Studio
- Visual Studio Community (For Development)
- Go to Flutter Documentation to get started.
- Choose the appropriate OS for installing Flutter.
- Ensure you meet the system requirements to run Git commands, or if you have Git installed, proceed to the next step.
- Download Flutter SDK for Windows and follow the steps.
- Update your path: Go to
Edit the system environment variables
and set the PATH value toC://<path-to>/flutter/bin
. See the documentation for instructions. - After updating the path, run
flutter doctor
in your terminal:flutter doctor
- Clone this repository to your project directory using Github Desktop, or open your terminal and run:
git clone https://github.com/ronhedwigzape/student_event_calendar.git
- Navigate to the project directory:
cd student_event_calendar
- Install Visual Studio. Ensure
Desktop Development with C++
is installed. - Install Google Chrome for completion in flutter doctor.
- Install Android Studio. Open Android Studio and go to
More Actions
>SDK Manager
>SDK Tools
tab, and installAndroid SDK Command-line Tools (latest)
.
- Open Android Studio: Launch Android Studio and select
"More Options" > "Virtual Device Manager"
. - Create a new Virtual Device: Click
"Create Virtual Device"
, select a device (e.g.,Pixel XL
), and click"Next"
. - Download a System Image: Select a version of Android, click
"Download" > "Accept" > "Next" > "Finish"
. - Configure the AVD: Set additional configuration details and a custom name for your emulator.
- Launch the AVD: Select the virtual device from the dropdown menu at the top of Android Studio.
-
Locate Android SDK: Default location is
C:\Users\<your-user-name>\AppData\Local\Android\Sdk
. -
Set the ANDROID_HOME environment variable: Add
C:\Users\<your-user-name>\AppData\Local\Android\Sdk\emulator
to your PATH. -
Set the JAVA_HOME environment variable: Add
C:\Program Files\Java\jdk-17
to your PATH. -
List and run emulators:
emulator -list-avds emulator -avd <name-of-your-emulator>
Example:
emulator -avd Pixel_XL_API_33
-
Complete flutter doctor issues:
flutter doctor --android-licenses
-
Expected output for
flutter doctor
: -
If you have a device, enable
Developer Options
andUSB debugging mode
. -
Install dependencies and start development:
flutter run
-
If you encounter
Current Dart SDK version not updated
error:flutter channel beta flutter upgrade
-
To run on Chrome:
flutter run -d chrome --web-renderer html
-
Change directory to /web and install
dotenv
package:cd /web npm install
- Review the App Manifest: Check
<app dir>/android/app/src/main
and verify values. - Review the Build Configuration: Check
<app dir>/android/app/build.gradle
. - Build an App Bundle:
flutter build appbundle
- Test the App Bundle.
- Publish to Google Play: Follow the Google Play launch documentation.
- Review the App Configuration: Open
ios/Runner.xcworkspace
in Xcode. - Select the Deployment Target: Specify the iOS version in Xcode.
- Add an App Icon: Follow the App Icon guidelines.
- Create a Build Archive: Select
Product > Archive
in Xcode. - Publish to the App Store: Follow the iOS App Store distribution guide.
- Add Web Support:
flutter channel stable flutter upgrade flutter config --enable-web
- Build the App for Release:
flutter build web
- Serve the App:
python -m http.server 8000
- Deploy the App: Use Firebase Hosting or any web server.
- Update dependencies:
flutter pub upgrade
- Clean the build:
flutter clean flutter pub get
Enjoy using SparkEventify!