How to add one image in Flutter App

0 votes

Hi Guys,

I have created one App using Flutter Framework. In the body part, I want to add one image. How can I do that?

Jul 24, 2020 in Others by akhtar
• 38,260 points
683 views

1 answer to this question.

0 votes

Hi@akhtar,

You can use Image.network() method to add one image in the body part. It creates a widget that displays an ImageStream obtained from the network. I have attached one example below for your reference.

var url =
      'https://raw.githubusercontent.com/nadim70/flutter/master/';
  var MyImage = Image.network(
    url,
    width: double.infinity,
    height: double.infinity,
  );

var myhome = Scaffold(
    appBar: myappBar,
    body: MyImage,
    backgroundColor: Colors.grey.shade400,
  );

To know more about Flutter, join our Flutter Certification today.

answered Jul 24, 2020 by MD
• 95,460 points

Related Questions In Others

0 votes
1 answer

How to create a Volume Icon in Flutter App?

Hi@akhtar, You can use Icon Widget to create ...READ MORE

answered Jul 24, 2020 in Others by MD
• 95,460 points
2,163 views
0 votes
1 answer

How to add a border to a widget in Flutter?

Hi@akhtar, You need to add the TextField as a child to a Container that has ...READ MORE

answered Jul 24, 2020 in Others by MD
• 95,460 points
3,892 views
0 votes
1 answer

How to create a navigation bar in Flutter app?

Hi@akhtar, To add a drawer to the app, ...READ MORE

answered Aug 25, 2020 in Others by MD
• 95,460 points
939 views
0 votes
1 answer

How to use Card Widget in Flutter App?

Hi@akhtar, A card is a sheet of material used to ...READ MORE

answered Aug 26, 2020 in Others by MD
• 95,460 points
1,162 views
0 votes
1 answer

What is the future of flutter?

Hi@MD, Flutter is a rather new cross-platform framework ...READ MORE

answered Jul 17, 2020 in Others by akhtar
• 38,260 points
1,204 views
0 votes
1 answer

What is Flutter?

Hi@akhtar, Flutter is an app SDK for building ...READ MORE

answered Jul 17, 2020 in Others by MD
• 95,460 points
1,514 views
0 votes
1 answer

How to install Flutter in Windows system?

Hi@akhtar, You can follow the below-given steps to ...READ MORE

answered Jul 17, 2020 in Others by MD
• 95,460 points
1,816 views
0 votes
1 answer

How to add Icon to the TextField in Flutter App?

Hi@akhtar, You can add any Icon to your ...READ MORE

answered Sep 3, 2020 in Others by MD
• 95,460 points
5,429 views
0 votes
1 answer

How to add a background image to flutter app?

Hi@akhtar, Scaffold doesn't support any concept of a background ...READ MORE

answered Sep 10, 2020 in Others by MD
• 95,460 points
2,207 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP