Bustime website was created in 2012 to provide passengers with information about the current location of public transport in real-time. The provided information is based on satellite navigation data from GLONASS/GPS. Using the service, passengers spend less time waiting at stops, which is especially relevant in adverse weather conditions. Project philosophy:
- Provide passengers with reliable information as quickly as possible with minimal energy costs
- Increase the convenience of using public transport
- Do not multiply entities beyond necessity
- Build your server
- Follow the instructions at
https://github.com/bustime-org/bustimeto run your own Bustime server.
- Follow the instructions at
-
Download Flutter SDK:
- Visit the Flutter website and download the SDK for your operating system.
-
Extract the SDK:
- Extract the downloaded file to a suitable location on your system (e.g.,
C:\src\flutteron Windows).
- Extract the downloaded file to a suitable location on your system (e.g.,
-
Add Flutter to PATH:
- Update your system’s environment variables to include the Flutter SDK
bindirectory in yourPATH.
- Update your system’s environment variables to include the Flutter SDK
-
Verify Installation:
- Open a terminal and run:
flutter doctor
- Follow any additional setup instructions provided by the
flutter doctoroutput.
- Open a terminal and run:
-
Install IDE:
- Use an IDE like Android Studio, Visual Studio Code, or IntelliJ IDEA.
-
Install Flutter Plugin:
- For VS Code: Install the Flutter and Dart extensions from the Extensions Marketplace.
- For Android Studio: Go to Settings > Plugins and install Flutter (this will also install Dart).
-
Android Emulator:
- Install the Android SDK via Android Studio.
- Create and launch an emulator from AVD Manager.
-
iOS Simulator (Mac only):
- Install Xcode and open the iOS Simulator from Xcode.
-
Physical Device:
- Enable Developer Mode on your device and connect it via USB.
- Run:
flutter devices
- Ensure your device appears in the list.
-
Download the Project:
- Follow the instructions provided on Gitlab on how to clone this repository to your local machine.
-
Open the Project:
- Open the project in your IDE (e.g., VS Code or Android Studio).
- Change domain link:
- Locate
lib/app/app_constants.dart - Replace the link https://busti.me with your own hosted server link, built according to the instructions at https://github.com/bustime-org/bustime.
- Locate
- Change the app:
- Change the app to your liking, feel free to do whatever your heart desires
- Start Debugging:
- Connect a device or launch an emulator.
- In your terminal, run:
flutter run
- Or, use the Run button in your IDE.
-
Android APK:
- Run:
flutter build apk --split-per-abi --no-tree-shake-icons
- The APK file will be located in
build/app/outputs/flutter-apk/.
- Run:
-
iOS App (Mac only):
- Ensure you have a valid Apple Developer account and Xcode configured.
- Run:
flutter build ios
You’ve successfully installed Flutter, adjusted Bustime to your needs, and built it! 🎉