revision
This commit is contained in:
@@ -1,24 +0,0 @@
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:firebase_core/firebase_core.dart';
|
||||
import 'package:firebase_storage/firebase_storage.dart';
|
||||
|
||||
// final FirebaseStorage storage = FirebaseStorage.instance;
|
||||
|
||||
// Future<bool> uploadImage(File image) async {
|
||||
// final String namefile = image.path.split('/').last;
|
||||
|
||||
// Reference ref = storage.ref().child('profile').child(namefile);
|
||||
|
||||
// final UploadTask uploadTask = ref.putFile(image);
|
||||
|
||||
// final TaskSnapshot snapshot = await uploadTask.whenComplete(() => true);
|
||||
|
||||
// final String url = await snapshot.ref.getDownloadURL();
|
||||
|
||||
// if (snapshot.state == TaskState.success) {
|
||||
// return true;
|
||||
// } else {
|
||||
// return false;
|
||||
// }
|
||||
// }
|
||||
Reference in New Issue
Block a user