title: Flutter: Displaying Images List from Device Gallery
body: <p>I have ListView for photos and I am trying to get photos from gallery and display them on the screen, but the problem is when I press to add a new photo the whole photos change to the new photo.</p>
  
  <p>I want to change every photo separately without changing the other photos.</p>
  
  <pre><code>File _image;
  final picker = ImagePicker();
  
  Future getImage() async {
    final image = await picker.getImage(source: ImageSource.gallery);
  
    setState(() {
      _image = File(image.path);
      print((image.path));
    });
  }
  
   child: ListView.builder(
      scrollDirection: Axis.horizontal,
      itemCount: 1,
        itemBuilder: (BuildContext context, int index){
        return Row(
          children: &lt;Widget&gt;[
            GestureDetector(
              onTap: (){
                getImage();
  
              },
              child: Padding(
                padding: EdgeInsets.only(left:5.0, right:5,top: 10),
                child: Container(
                  height: 100.0,
                  width: 100.0,
                  decoration: BoxDecoration(
                    border: Border.all(),
                    image: DecorationImage(
                      image: _image == null ? AssetImage(
                          'assets/images/add_pic.jpg') : FileImage(_image),
                      fit: BoxFit.fill,
                    ),
                    shape: BoxShape.rectangle,
                  ),
                ),
              ),
            ),
  </code></pre>