Author SHA1 Message Date
fbachus 6c19d981ad Revert "build(mobile): deactivate sqlite debugging lib used for desktop"
keep development branch in a state to run on desktop

This reverts commit 5ead82b9c6.
2026-08-01 00:07:46 +02:00
fbachus 2b7b943ea2 doc(readme): clarify what to do with .env 2026-07-31 22:20:19 +02:00
fbachus 6dfb8d7c09 doc(readme): make the README remotely useful 2026-07-31 22:06:28 +02:00
fbachus d4fbcc460f fix(ui): move up 'view all journeys' button to be unobstructed 2026-07-31 18:33:27 +02:00
2 changed files with 40 additions and 13 deletions
+37 -10
View File
@@ -1,17 +1,44 @@
# oeffimaster
A new Flutter project.
Aggregating information to create your own routes in public transit effortlessly.
## Getting Started
This project is a starting point for a Flutter application.
## Goal of this project
Do you ever get a route from google maps and see a 13 minute switch time, for a train that comes every ten minutes? Do you then prompt another app with better results. What if you'd normally have to wait 9 minutes for your train, but the previous train is late, so in reality you can switch with only a minutes worth of waiting? Now you can get an earlier train for the next connection, and suddenly the 3rd-fastest connection in google's algorithm becomes the fastest, and you saved 10 minutes - or could have, if you knew.
My app will not solve this issue.
As someone who is familiar with good chunks of the cities public transport network, I often enough *think* I can get faster to my target than the routing served by commonplace apps, but I have a hard time of knowing that for sure. Other apps allow some degree of comparing routes to one another, but it's not a priority, and editing any part of it is not supported at all.
Oeffimaster aims to make that type of information easily accessible and aggregate it in the most helpful way, allowing comparison and editing of routes.
A few resources to get you started if this is your first Flutter project:
## Usage
I am currently providing artifacts for linux and android. To make your own builds, you will need an api key for your network.
- [Learn Flutter](https://docs.flutter.dev/get-started/learn-flutter)
- [Write your first Flutter app](https://docs.flutter.dev/get-started/codelab)
- [Flutter learning resources](https://docs.flutter.dev/reference/learning-resources)
## Build the project
For help getting started with Flutter development, view the
[online documentation](https://docs.flutter.dev/), which offers tutorials,
samples, guidance on mobile development, and a full API reference.
### Get the API key
For the VBB network in Berlin/Brandenburg
1. Installing flutter: https://docs.flutter.dev/install/quick
2. Get an API key for VBB: https://unternehmen.vbb.de/digitale-services/api/
It will take some time, but they will send you an API key and the url to access it.
this should work for other public transit networks using the HAFAS api, but you will have to test this yourself
### The build part
Create a `.env` in the project root and add the following to it
```env
VBB_API_KEY={YOUR_API_KEY}
VBB_API_URL={YOUR_API_URL}
```
For local builds and connected devices simply run `flutter run` in your terminal.
To build for linux:
```bash
flutter build linux -DVBB_API_KEY={API_KEY} -DVBB_API_URL={API_URL}
```
To build for android:
```
flutter build apk -DVBB_API_KEY={API_KEY} -DVBB_API_URL={API_URL}
```
+3 -3
View File
@@ -4,12 +4,12 @@ import 'api_handler.dart';
import 'transport_helper.dart';
import 'dart:async';
// import 'package:sqflite_common_ffi/sqflite_ffi.dart'; //for testing on desktop
import 'package:sqflite_common_ffi/sqflite_ffi.dart'; //for testing on desktop
void main() async {
await dotenv.load();
const String dbName = "oeffimasterTransportDb";
// databaseFactory = databaseFactoryFfi; // for debugging and desktop test
databaseFactory = databaseFactoryFfi; // for debugging and desktop test
DbHelper.initDb(dbName);
runApp(const MyApp());
}
@@ -553,7 +553,7 @@ class _JourneyDetailPageState extends State<JourneyDetailPage> {
),
),
Container(
margin: const EdgeInsets.all(20.0),
margin: const EdgeInsets.only(bottom: 60.0),
child: ElevatedButton(
onPressed: () {
Navigator.pop(