diff --git a/lib/main.dart b/lib/main.dart index 00c8edfed35d4f24d73e3768f0d63226e06ca518..4ccf87002ed6247782e34589256b7f1b9e8397f8 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -1,12 +1,35 @@ +import 'dart:io'; + import 'package:flutter/material.dart'; +import 'package:path_provider/path_provider.dart'; import 'datamodel.dart'; import 'addevent.dart'; import 'viewevents.dart'; import 'overview.dart'; import 'configuration.dart'; +Future<void> pathstuff() async { + + + //Directory downloadsDirectory = await DownloadsPathProvider.downloadsDirectory; + + //Directory appDocDir = await getApplicationDocumentsDirectory(); + + + + + //debugPrint(appDocDir.path.toString()); +} + void main() { - + + + //pathstuff(); + + + + + EventStoreInstance events = EventStoreInstance(); final ConfigurationStoreInstance configuration = ConfigurationStoreInstance(); diff --git a/pubspec.lock b/pubspec.lock index a025b83c8f90ce5e0a8a3aa67f2e21fb7da1b30e..fadac3d03197cf0d3f9eeecaef3f4dbe021ff69a 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -247,6 +247,27 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "1.8.0" + path_provider: + dependency: "direct main" + description: + name: path_provider + url: "https://pub.dartlang.org" + source: hosted + version: "2.0.9" + path_provider_android: + dependency: transitive + description: + name: path_provider_android + url: "https://pub.dartlang.org" + source: hosted + version: "2.0.12" + path_provider_ios: + dependency: transitive + description: + name: path_provider_ios + url: "https://pub.dartlang.org" + source: hosted + version: "2.0.8" path_provider_linux: dependency: transitive description: @@ -254,6 +275,13 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "2.1.5" + path_provider_macos: + dependency: transitive + description: + name: path_provider_macos + url: "https://pub.dartlang.org" + source: hosted + version: "2.0.5" path_provider_platform_interface: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index ef189761812de6ecded8f76f9fce2e3e7a6b82f8..19f099d225985f4859fd2bde24e9fe9438056ccc 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -31,6 +31,7 @@ dependencies: sdk: flutter shared_preferences: ^2.0.12 + path_provider: ^2.0.9 http: ^0.13.4 geolocator: ^8.1.1 flutter_login: ^3.1.0