Rebrand
This commit is contained in:
parent
16e7e7bec3
commit
5c293fe827
4 changed files with 6 additions and 4 deletions
|
@ -6,7 +6,7 @@ import 'package:sqflite/sqflite.dart';
|
|||
import 'package:path_provider/path_provider.dart';
|
||||
|
||||
class DatabaseHelper {
|
||||
static final _databaseName = "orma.db";
|
||||
static final _databaseName = "ente.db";
|
||||
static final _databaseVersion = 1;
|
||||
|
||||
static final table = 'photos';
|
||||
|
|
|
@ -14,7 +14,7 @@ void main() async {
|
|||
}
|
||||
|
||||
class MyApp extends StatelessWidget with WidgetsBindingObserver {
|
||||
final _title = 'Orma';
|
||||
final _title = 'ente photos';
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
WidgetsBinding.instance.addObserver(this);
|
||||
|
|
|
@ -48,7 +48,7 @@ class Photo {
|
|||
}
|
||||
|
||||
Future<Uint8List> getOriginalBytes() {
|
||||
return AssetEntity(id: localId).originBytes;
|
||||
return getAsset().originBytes;
|
||||
}
|
||||
|
||||
@override
|
||||
|
|
|
@ -2,6 +2,7 @@ import 'dart:async';
|
|||
import 'dart:io';
|
||||
|
||||
import 'package:logger/logger.dart';
|
||||
import 'package:http_parser/http_parser.dart';
|
||||
import 'package:myapp/core/event_bus.dart';
|
||||
import 'package:myapp/db/db_helper.dart';
|
||||
import 'package:myapp/events/user_authenticated_event.dart';
|
||||
|
@ -167,7 +168,8 @@ class PhotoSyncManager {
|
|||
|
||||
Future<Photo> _uploadFile(Photo localPhoto) async {
|
||||
var formData = FormData.fromMap({
|
||||
"file": MultipartFile.fromBytes(await localPhoto.getOriginalBytes()),
|
||||
"file":
|
||||
MultipartFile.fromFile((await localPhoto.getAsset().originFile).path),
|
||||
"filename": localPhoto.title,
|
||||
"user": Configuration.instance.getUsername(),
|
||||
"token": Configuration.instance.getToken(),
|
||||
|
|
Loading…
Add table
Reference in a new issue