Skip to content

Image

A representation of Imagery.

NikuImage accepts all the props as same as Image.

dart
// 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

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

With progress indicator

dart
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