Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
org.benoitharrault.random
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
android
org.benoitharrault.random
Compare revisions
6219fdb0f418b77beffb1d8295e28d69b15bd4f5 to 763b8858f1bc2731111c4190db89fb4e43f14e65
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
android/random
Select target project
No results found
763b8858f1bc2731111c4190db89fb4e43f14e65
Select Git revision
Swap
Target
android/random
Select target project
android/random
1 result
6219fdb0f418b77beffb1d8295e28d69b15bd4f5
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
lib/utils/picture_storage.dart
+3
-1
3 additions, 1 deletion
lib/utils/picture_storage.dart
lib/utils/tools.dart
+7
-0
7 additions, 0 deletions
lib/utils/tools.dart
pubspec.lock
+4
-4
4 additions, 4 deletions
pubspec.lock
pubspec.yaml
+1
-1
1 addition, 1 deletion
pubspec.yaml
with
15 additions
and
6 deletions
lib/utils/picture_storage.dart
View file @
763b8858
...
...
@@ -3,6 +3,8 @@ import 'dart:io';
import
'package:path/path.dart'
;
import
'package:path_provider/path_provider.dart'
;
import
'package:random/utils/tools.dart'
;
class
PictureStorage
{
Future
<
String
>
get
_localPath
async
{
final
directory
=
await
getApplicationDocumentsDirectory
();
...
...
@@ -20,7 +22,7 @@ class PictureStorage {
try
{
return
await
sourceFile
.
rename
(
newPath
);
}
on
FileSystemException
catch
(
e
)
{
print
(
'Found exception while moving file:
$e
'
);
print
log
(
'Found exception while moving file:
$e
'
);
final
newFile
=
await
sourceFile
.
copy
(
newPath
);
await
sourceFile
.
delete
();
return
newFile
;
...
...
This diff is collapsed.
Click to expand it.
lib/utils/tools.dart
0 → 100644
View file @
763b8858
import
'package:flutter/foundation.dart'
;
void
printlog
(
String
message
)
{
if
(
!
kReleaseMode
)
{
debugPrint
(
message
);
}
}
This diff is collapsed.
Click to expand it.
pubspec.lock
View file @
763b8858
...
...
@@ -53,10 +53,10 @@ packages:
dependency: transitive
description:
name: camera_platform_interface
sha256:
fceb2c36038b6392317b1d5790c6ba9e6ca9f1da3031181b8bea03882bf9387a
sha256:
a250314a48ea337b35909a4c9d5416a208d736dcb01d0b02c6af122be66660b0
url: "https://pub.dev"
source: hosted
version: "2.7.
3
"
version: "2.7.
4
"
camera_web:
dependency: transitive
description:
...
...
@@ -364,10 +364,10 @@ packages:
dependency: transitive
description:
name: provider
sha256:
"9a96a0a19b594dbc5bf0f1f27d2bc67d5f95957359b461cd9feb44ed6ae75096"
sha256:
c8a055ee5ce3fd98d6fc872478b03823ffdb448699c6ebdbbc71d59b596fd48c
url: "https://pub.dev"
source: hosted
version: "6.1.
1
"
version: "6.1.
2
"
shared_preferences:
dependency: transitive
description:
...
...
This diff is collapsed.
Click to expand it.
pubspec.yaml
View file @
763b8858
...
...
@@ -3,7 +3,7 @@ description: A random application, for testing purpose only.
publish_to
:
'
none'
version
:
1.0.
48+49
version
:
1.0.
51+52
environment
:
sdk
:
'
^3.0.0'
...
...
This diff is collapsed.
Click to expand it.
Prev
1
2
Next