If you find this video useful, consider Following me on: Twitter: twitter.com/theretroportal Instagram: instagram.com/retroportalstudio Happy Coding! ✌️😁
@ddean37324 жыл бұрын
GitHub source?
@atifulislamasif78934 жыл бұрын
Thank you so much for this tutorial. You explain every step briefly. Keep up the good work.
@p3ngxin5 жыл бұрын
Hi, can you share the code ? Appreciate it if you do.
@jenstofte96874 жыл бұрын
Thanks for the video. Helped a lot.
@yashchandraverma31314 жыл бұрын
Simply Thanks
@sujiththycattussery5 жыл бұрын
More flutter videos please
@revathidevaraj23544 жыл бұрын
Thanks... It worked :)
@s1dc0des4 жыл бұрын
cool...plz add git also
@nyr4414 жыл бұрын
How to load low resolution images in grid view and hugh resolution images in image view mode
@foxmulder12604 жыл бұрын
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"
@melonpun4 жыл бұрын
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.
@mdamanullahhoque1454 жыл бұрын
thank you so much. it's really helpfull for me. can you provide source code ?? please
@raymondmichael49874 жыл бұрын
What about deleting those locally stored images, so we don't use much spaces on the devices
@josecoverlessons5 жыл бұрын
More Flutter Videos
@kameshvadivel94594 жыл бұрын
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...
@viniciuscolossal19784 жыл бұрын
same here
@harshasurya84604 жыл бұрын
What will be itemcount if we don't have fixed number of images
@yamunag43834 жыл бұрын
how to take one image for full screen view from this grid view???
@CodeWithMuhammadAhsan4 жыл бұрын
please help me too if you tried it out ??
@IBB0013 жыл бұрын
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?
@shubhammodi83604 жыл бұрын
Failed assertion: line 30 pos 15: 'child != null': is not true. plzz solve this error
@krrishchheda22523 жыл бұрын
I am getting same error If you got the solution please share the code to krrishkcheda@gmail.com Please help me
@vineetupadhyay40044 жыл бұрын
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?
@DawnFreeSdiki4 жыл бұрын
itemcount = "objectname".length,
@krrishchheda22523 жыл бұрын
'package:flutter/src/material/grid_tile.dart': Failed assertion: line 28 pos 15: 'child != null': is not true. please help solve this....Please
@ruhanahmad12844 жыл бұрын
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
@oberesapps43724 жыл бұрын
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, ) ], ), ), ), ); } }
@garvwadhwa48714 жыл бұрын
how can we download these images to our device?? **
@thomasmabika72915 жыл бұрын
bloc or redux?
@RetroPortalStudio5 жыл бұрын
Personally i Prefer Bloc! and Provider Pattern
@smamahsn22753 жыл бұрын
Aby code to dyy
@omartec79644 жыл бұрын
Man por qué no das el código? que visaje esta gente