Test for the firebase storage provider
This commit is contained in:
parent
ff97fd4bde
commit
e3d6c8423f
4 changed files with 17 additions and 10 deletions
|
|
@ -2,4 +2,6 @@ import 'package:flutter/material.dart';
|
|||
|
||||
import 'src/App.dart';
|
||||
|
||||
main() => runApp(App());
|
||||
main() async {
|
||||
runApp(App());
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,12 +1,20 @@
|
|||
import 'dart:io';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:image_picker/image_picker.dart';
|
||||
import 'package:firebase_auth/firebase_auth.dart';
|
||||
import './models/event_model.dart';
|
||||
import './models/summary_model.dart';
|
||||
import './models/task_model.dart';
|
||||
import './models/user_model.dart';
|
||||
import './resources/google_sign_in_provider.dart';
|
||||
import 'package:firebase_storage/firebase_storage.dart';
|
||||
import './resources/firebase_storage_provider.dart';
|
||||
|
||||
class App extends StatefulWidget {
|
||||
AppState createState() => AppState();
|
||||
}
|
||||
|
||||
class AppState extends State<App> {
|
||||
File image;
|
||||
FirebaseStorageProvider provider = FirebaseStorageProvider();
|
||||
StorageUploadTask task;
|
||||
|
||||
class App extends StatelessWidget {
|
||||
Widget build(BuildContext context) {
|
||||
return MaterialApp(
|
||||
title: 'Do more',
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ import 'dart:io';
|
|||
|
||||
import 'package:firebase_storage/firebase_storage.dart';
|
||||
import 'package:uuid/uuid.dart';
|
||||
export 'package:firebase_storage/firebase_storage.dart' show StorageUploadTask;
|
||||
|
||||
class FirebaseStorageProvider {
|
||||
final StorageReference _storage;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue