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 Method | Equivalent Widget |
---|---|
n.Image | Image |
n.Image.network | Image.network |
n.Image.asset | Image.asset |
n.Image.memory | Image.memory |