The dashboard for the Apollo's Api and Booking system
First run flutter pub get
to install the dependencies.
Run the program by calling flutter run
and then select windows or web as the platform or run flutter run -d web-server --web-hostname 0.0.0.0 --web-port 3000
in Github Codespace
- Run the Web-Server (for development)
flutter run -d web-server
- Build the app for different platforms using the following and then choose the platform
flutter build
If you are connected to internet and the resource isn't blocked by your firewall, It will work and no error will occur. This error occurs in flutter web in Offline mode because CanvasKit is not automatically bundled for offline development.
To make it work offline there are two ways:
flutter run -d chrome --web-renderer html
Download (or build) CanvasKit anywhere under the web/ directory of your project. Follow these instructions and specify FLUTTER_WEB_CANVASKIT_URL to point to /path/to/bundled/canvaskit/ (if it's in the root of web/ then I think it's just /). Include all the necessary fonts in your pubspec.yaml (instructions) Notes for working offline in release mode:
In release mode, in order to make app work offline, after releasing app with command flutter build web, go to index.html file in build/web then add this code to the script tag:
<script>
window.flutterConfiguration = {
canvasKitBaseUrl: "/canvaskit/"
};
// ...
├───lib
│ ├───enums
│ ├───models
│ ├───pages
│ ├───services
│ ├───views
│ ├───widgets
│ ├───animations.dart
│ ├───destinations.dart
│ ├───main.dart
├───.env (needs to be created, see .env.example for reference)
The project has a Layer-First structure.
- Flutter (including Dart)
- Install packages (in the root directory)
flutter pub get
Currently Windows, Web and Android are the only supported platforms. The App is partly optimized for a smartphone. Other platforms have not been tested yet.