feat: add remote products and qr code for payconic
This commit is contained in:
@@ -1,8 +1,12 @@
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:intl/date_symbol_data_local.dart';
|
||||
import 'package:intl/intl.dart';
|
||||
import 'package:path/path.dart' as path;
|
||||
import 'package:path_provider/path_provider.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import 'package:sentry_flutter/sentry_flutter.dart';
|
||||
|
||||
@@ -14,6 +18,7 @@ import 'services/admin_pin_service.dart';
|
||||
import 'services/bar_tab_service.dart';
|
||||
import 'services/kooltap_api_client.dart';
|
||||
import 'services/pin_lock_service.dart';
|
||||
import 'services/product_image_sync.dart';
|
||||
import 'services/product_service.dart';
|
||||
import 'services/remote_sync_service.dart';
|
||||
import 'services/settings_service.dart';
|
||||
@@ -70,6 +75,16 @@ Future<void> _runApp() async {
|
||||
database: database,
|
||||
barTabService: barTabService,
|
||||
apiClient: apiClient,
|
||||
imageSync: ProductImageSync(
|
||||
database: database,
|
||||
apiClient: apiClient,
|
||||
imagesDirectory: () async => Directory(
|
||||
path.join(
|
||||
(await getApplicationSupportDirectory()).path,
|
||||
'product_images',
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
final pinLockViewModel = PinLockViewModel(
|
||||
|
||||
Reference in New Issue
Block a user