Flutter - Creating Image Grid using Firebase Storage | Flutter Firebase

  Рет қаралды 22,344

RetroPortal Studio

RetroPortal Studio

Күн бұрын

Пікірлер: 38
@RetroPortalStudio
@RetroPortalStudio 4 жыл бұрын
If you find this video useful, consider Following me on: Twitter: twitter.com/theretroportal Instagram: instagram.com/retroportalstudio Happy Coding! ✌️😁
@ddean3732
@ddean3732 4 жыл бұрын
GitHub source?
@atifulislamasif7893
@atifulislamasif7893 4 жыл бұрын
Thank you so much for this tutorial. You explain every step briefly. Keep up the good work.
@p3ngxin
@p3ngxin 5 жыл бұрын
Hi, can you share the code ? Appreciate it if you do.
@jenstofte9687
@jenstofte9687 4 жыл бұрын
Thanks for the video. Helped a lot.
@yashchandraverma3131
@yashchandraverma3131 4 жыл бұрын
Simply Thanks
@sujiththycattussery
@sujiththycattussery 5 жыл бұрын
More flutter videos please
@revathidevaraj2354
@revathidevaraj2354 4 жыл бұрын
Thanks... It worked :)
@s1dc0des
@s1dc0des 4 жыл бұрын
cool...plz add git also
@nyr441
@nyr441 4 жыл бұрын
How to load low resolution images in grid view and hugh resolution images in image view mode
@foxmulder1260
@foxmulder1260 4 жыл бұрын
Hello, Thank you for your tutorial it's helpfull, do you have any idea please why I got this error message ? -> "This class (or a class which this class inherits from) is marked as '@immutable', but one or more of its instance fields are not final: ImageGridItem._index"
@melonpun
@melonpun 4 жыл бұрын
Brother is there a way where we can get the image url after the user clicks on an image? For example I want to use the url for a function where the user can download the image to the device.
@mdamanullahhoque145
@mdamanullahhoque145 4 жыл бұрын
thank you so much. it's really helpfull for me. can you provide source code ?? please
@raymondmichael4987
@raymondmichael4987 4 жыл бұрын
What about deleting those locally stored images, so we don't use much spaces on the devices
@josecoverlessons
@josecoverlessons 5 жыл бұрын
More Flutter Videos
@kameshvadivel9459
@kameshvadivel9459 4 жыл бұрын
Sir,I am using firestore database not storage,when I scroll down images are loading again and again,I also tried cached network image but it not worked, How to solve this problem..? Please help me...
@viniciuscolossal1978
@viniciuscolossal1978 4 жыл бұрын
same here
@harshasurya8460
@harshasurya8460 4 жыл бұрын
What will be itemcount if we don't have fixed number of images
@yamunag4383
@yamunag4383 4 жыл бұрын
how to take one image for full screen view from this grid view???
@CodeWithMuhammadAhsan
@CodeWithMuhammadAhsan 4 жыл бұрын
please help me too if you tried it out ??
@IBB001
@IBB001 3 жыл бұрын
hi my friends and thank you for your brief tutorial but i always get no data and there is no error in my code i am stuck can any one help?
@shubhammodi8360
@shubhammodi8360 4 жыл бұрын
Failed assertion: line 30 pos 15: 'child != null': is not true. plzz solve this error
@krrishchheda2252
@krrishchheda2252 3 жыл бұрын
I am getting same error If you got the solution please share the code to krrishkcheda@gmail.com Please help me
@vineetupadhyay4004
@vineetupadhyay4004 4 жыл бұрын
How do I get the total number of item, so that instead of setting itemCount =12 , it could set up to the total number of images present?
@DawnFreeSdiki
@DawnFreeSdiki 4 жыл бұрын
itemcount = "objectname".length,
@krrishchheda2252
@krrishchheda2252 3 жыл бұрын
'package:flutter/src/material/grid_tile.dart': Failed assertion: line 28 pos 15: 'child != null': is not true. please help solve this....Please
@ruhanahmad1284
@ruhanahmad1284 4 жыл бұрын
how to add images to firebase storage using flutter ? i mean by clicking on button images store in storage then how can we access it
@oberesapps4372
@oberesapps4372 4 жыл бұрын
import 'dart:io'; import 'package:firebase_database/firebase_database.dart'; import 'package:firebase_storage/firebase_storage.dart'; import 'package:flutter/material.dart'; import 'package:image_picker/image_picker.dart'; import 'package:intl/intl.dart'; import '../home.dart'; class AddPage extends StatefulWidget { @override _AddPageState createState() => _AddPageState(); } class _AddPageState extends State { File sampleImage; String _myValue; String url; final formKey = new GlobalKey(); Future getImage() async { var tempImage = await ImagePicker.pickImage(source: ImageSource.camera); setState(() { sampleImage = tempImage; }); } bool validateAndSave(){ final form = formKey.currentState; if(form.validate()) { form.save(); return true; } else { return false; } } void uploadStatusImages() async { if(validateAndSave()) { final StorageReference postImageRef = FirebaseStorage.instance.ref().child("Post Images"); var timeKey = new DateTime.now(); final StorageUploadTask uploadTask = postImageRef.child(timeKey.toString() + ".jpg" ).putFile(sampleImage); var imageUrl = await(await uploadTask.onComplete).ref.getDownloadURL(); url = imageUrl.toString(); print("Image Url = " + url); goToHomePage(); saveToDatabase(url); } } void saveToDatabase(url){ var dbTimeKey = new DateTime.now(); var formatDate = new DateFormat("MMM d, yyyy"); var formatTime = new DateFormat("EEEE, hh:mm aaa"); String date = formatDate.format(dbTimeKey); String time = formatTime.format(dbTimeKey); DatabaseReference ref = FirebaseDatabase.instance.reference(); var data = { "image": url, "description": _myValue, "date": date, "time": time, }; ref.child("Post").push().set(data); } void goToHomePage() { Navigator.of(context).push(MaterialPageRoute( builder: (context) => Home(), ) ); } @override Widget build(BuildContext context) { return new Scaffold( appBar: AppBar( title: new Text("Upload Image"), centerTitle: true, backgroundColor: Colors.redAccent, ), body: new Center( child: sampleImage == null ? Text("Select an Image") : enableUpload(), ), floatingActionButton: new FloatingActionButton ( onPressed: getImage, tooltip: "Add Image", child: new Icon(Icons.add_a_photo), ), ); } Widget enableUpload() { return new Container ( child: SingleChildScrollView( child: new Form( key: formKey, child: Column ( children: [ Image.file(sampleImage, height: 290, width: 300,), SizedBox(height: 15.0,), TextFormField ( decoration: new InputDecoration(labelText: "Description"), validator: (value) { return value.isEmpty ? "Description is required" : null; }, onSaved: (value) { return _myValue = value; } ), SizedBox(height: 15.0,), RaisedButton( elevation: 10.0, child: Text("add"), textColor: Colors.white, color: Colors.pink, onPressed: uploadStatusImages, ) ], ), ), ), ); } }
@garvwadhwa4871
@garvwadhwa4871 4 жыл бұрын
how can we download these images to our device?? **
@thomasmabika7291
@thomasmabika7291 5 жыл бұрын
bloc or redux?
@RetroPortalStudio
@RetroPortalStudio 5 жыл бұрын
Personally i Prefer Bloc! and Provider Pattern
@smamahsn2275
@smamahsn2275 3 жыл бұрын
Aby code to dyy
@omartec7964
@omartec7964 4 жыл бұрын
Man por qué no das el código? que visaje esta gente
@HemangJoshi
@HemangJoshi 4 жыл бұрын
GitHub source?
In App Purchases in Flutter
10:54
Fireship
Рет қаралды 138 М.
Top 10 Widgets every Flutter Developer should know!
17:17
RetroPortal Studio
Рет қаралды 282 М.
Modus males sekolah
00:14
fitrop
Рет қаралды 16 МЛН
Cute kitty gadgets 💛
00:24
TheSoul Music Family
Рет қаралды 22 МЛН
Flutter - Getting started with Cloud Firestore | Flutter Tutorial
14:11
RetroPortal Studio
Рет қаралды 13 М.
Flutter Tutorial - Upload Images using Firebase Storage.
21:07
whatsupcoders
Рет қаралды 62 М.
List Detail with Cloud Firestore in Flutter
16:00
Samarth Agarwal
Рет қаралды 65 М.
Using Firestore as a backend to your Flutter app
11:42
Google for Developers
Рет қаралды 524 М.
Flutter Provider - Advanced Firebase Data Management
11:08
Fireship
Рет қаралды 144 М.
Complex Animations in Flutter using Rive | Flare
15:44
FilledStacks
Рет қаралды 225 М.
Flutter- How to Upload and Download using Firebase Storage
37:44
Flutter Create
Рет қаралды 19 М.
Flutter Camera Tutorial - Image Pick and Crop | Quick & Easy
19:13
RetroPortal Studio
Рет қаралды 38 М.
Modus males sekolah
00:14
fitrop
Рет қаралды 16 МЛН