Commit e2fce55c authored by Dio Maulana's avatar Dio Maulana

edit profile disable sementara

parent 2095fd42
class ResetPasswordArgs {
String idPath;
ResetPasswordArgs({
required this.idPath,
});
}
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(
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment