Skip to content
On this page

Image

A representation of Imagery.

NikuImage accepts all the props as same as Image.

// Using namespace
n.Image.network("https://user-images.githubusercontent.com/35027979/172061535-4fc5b0b7-4c78-44ee-9549-40ada89ced74.gif")

// Using Niku Prefix
NikuImage.network("https://user-images.githubusercontent.com/35027979/172061535-4fc5b0b7-4c78-44ee-9549-40ada89ced74.gif)

Example Usage

n.Image.assets("/assets/images/yae.jpg")
    ..cover
    ..rounded = 8;

With progress indicator

n.Image.assets("assets/takodachi.png")
    ..cover
    ..useCircleProgress(
        color: Colors.blue,
    );

Factory Method

Niku can accepts 4 factory method.

Factory MethodEquivalent Widget
n.ImageImage
n.Image.networkImage.network
n.Image.assetImage.asset
n.Image.memoryImage.memory

Defination

View Defination on pub.dev