Skip to content

Instantly share code, notes, and snippets.

Avatar

Abdelhameed Elnemr AbdouElnemr

View GitHub Profile
View HomePage.dart
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:task/data/FirestoreService.dart';
import 'package:task/utils/Helper.dart';
class HomePage extends StatefulWidget {
@override
State<StatefulWidget> createState() {
// TODO: implement createState
return new Home();
View Helper.dart
import 'package:firebase_auth/firebase_auth.dart';
import 'package:firebase_storage/firebase_storage.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
class Helper {
static final FirebaseAuth _auth = FirebaseAuth.instance;
static final TextEditingController _imageName = TextEditingController();
static Future<String> getImage(String image) async {