mirror of
https://github.com/twonlyapp/twonly-app.git
synced 2026-01-15 09:28:41 +00:00
22 lines
700 B
Dart
22 lines
700 B
Dart
import 'package:camera/camera.dart';
|
|
import 'package:twonly/src/database/twonly_database.dart';
|
|
import 'package:twonly/src/services/api.service.dart';
|
|
|
|
late ApiService apiService;
|
|
|
|
// uses for background notification
|
|
late TwonlyDatabase twonlyDB;
|
|
|
|
List<CameraDescription> gCameras = <CameraDescription>[];
|
|
bool gIsDemoUser = false;
|
|
|
|
// The following global function can be called from anywhere to update
|
|
// the UI when something changed. The callbacks will be set by
|
|
// App widget.
|
|
|
|
// This callback called by the apiProvider
|
|
Function(bool) globalCallbackConnectionState = (a) {};
|
|
Function() globalCallbackAppIsOutdated = () {};
|
|
|
|
bool globalIsAppInBackground = true;
|
|
int globalBestFriendUserId = -1;
|