flutter / flutter

Flutter makes it easy and fast to build beautiful apps for mobile and beyond
https://flutter.dev
BSD 3-Clause "New" or "Revised" License
166.12k stars 27.43k forks source link

Better Documentation on Images #81763

Open T0M0F opened 4 years ago

T0M0F commented 4 years ago

How do I use the imageBuilder and imageDirectory attributes? And also what is the correct syntax for integrating images?

KagurazakaHanabi commented 4 years ago

if you want to use other widget to display images, such as CachedNetworkImage:

Markdown(
  // ...
  imageBuilder: (Uri uri) {
    return CachedNetworkImage(
      imageUrl: uri.toString(),
    )
  }
)

About imageDirectory, See #20

T0M0F commented 4 years ago

Is the imagedirectory attribute needed to show images from locale file storage? Or is it only needed when using relative paths with the image tag?

TahaTesser commented 3 years ago

Hi @T0M0F I agree documentation images could be improved