Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
T
Tour Travel Agency AGR
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dio Maulana
Tour Travel Agency AGR
Commits
e2fce55c
Commit
e2fce55c
authored
Jun 06, 2023
by
Dio Maulana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edit profile disable sementara
parent
2095fd42
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
119 additions
and
72 deletions
+119
-72
arg_reset_password.dart
lib/helper/argument_route/arg_reset_password.dart
+7
-0
edit_profile.dart
lib/page/profile/edit_profile/edit_profile.dart
+18
-17
pubspec.lock
pubspec.lock
+94
-55
No files found.
lib/helper/argument_route/arg_reset_password.dart
0 → 100644
View file @
e2fce55c
class
ResetPasswordArgs
{
String
idPath
;
ResetPasswordArgs
({
required
this
.
idPath
,
});
}
lib/page/profile/edit_profile/edit_profile.dart
View file @
e2fce55c
import
'package:file_picker/file_picker.dart'
;
//
import 'package:file_picker/file_picker.dart';
import
'package:flutter/foundation.dart'
;
import
'package:flutter/material.dart'
;
import
'package:tour_travel_agr/helper/components_widget/custom_appbar.dart'
;
...
...
@@ -52,23 +52,24 @@ class _EditProfileViewState extends State<EditProfileView> {
children:
[
GestureDetector
(
onTap:
()
async
{
FilePickerResult
?
result
=
await
FilePicker
.
platform
.
pickFiles
();
if
(
result
!=
null
)
{
PlatformFile
file
=
result
.
files
.
first
;
// TODO: aktifin kalau udah dinaikin versiondartnya
// FilePickerResult? result =
// await FilePicker.platform.pickFiles();
// if (result != null) {
// PlatformFile file = result.files.first;
// print(file.name);
// print(file.bytes);
// print(file.size);
// print(file.extension);
// print(file);
setState
(()
{
byteImage
=
file
.
bytes
;
});
// print(file.path);
}
else
{
// User canceled the picker
}
//
// print(file.name);
//
// print(file.bytes);
//
// print(file.size);
//
// print(file.extension);
//
// print(file);
//
setState(() {
//
byteImage = file.bytes;
//
});
//
// print(file.path);
//
} else {
//
// User canceled the picker
//
}
},
child:
Container
(
margin:
EdgeInsets
.
only
(
...
...
pubspec.lock
View file @
e2fce55c
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment