How to use Image in Flutter with GFimage
GFImages is a Flutter Images that also represents the data with its specific pictorial representation in a very different and more convenient way. It uses the assets folder to take the static images and to display them on the app or it even takes network images through the network image property and it also takes a special property called Image Overlay ie, Image Overlay set its picture as the background and any form of paragraph or text in its foreground and thus an overlay of any kind of colors can be applied to it which gives a blurry effect on the picture.How to Get Started
Now here is the guide about how we should start developing Flutter Image Widget while using GetWidget UI Library. Getting started will guide you on how to start building a beautiful flutter application with the GetWidget UI library. You have to install the package from pub.dev, import the package in your Flutter project.Install Package from pub.dev :https://pub.dev/packages/getwidget
Import full package:
import 'package:getwidget/getwidget.dart'; Note: dependencies: getwidget: ^4.0.0Keep playing with the pre-built UI components.GetWidget Images is basically used to display the profile pictures of the users and to make it easy it has other types that can be used. In the below section we will see them with the example codes.
Flutter Image using assetImage or Network Image
The Flutter basic Image is a simple image with a specific height and width property. It is widely used to show a banner image or to represent a product image etc. The below shows how the image can be used with Example Code.import 'package:getwidget/getwidget.dart';
GFImageOverlay(
height: 200,
width: 300,
image: AssetImage('your asset image')
)
Flutter Circular Image using assetImage or network Image
A Flutter Circular Image is a rounded image that is mostly used as a profile picture or to show the profile of any kind of product, organization, or brand image to the users. The below shows how the image can be used in the code structure.import 'package:getwidget/getwidget.dart';
GFImageOverlay(
height: 200,
width: 200,
shape: BoxShape.circle,
image:AssetImage('your asset image')
)
How to Design Flutter Circle Avatar Image With example Code
A flutter avatar widget used to display the user’s profile image in different shapes.
Flutter Image Overlay with colorFilter
An Image Overlay is used to set the images in the background and the text in the foreground and to give a blurry effect with the colorfilter property. The below code shows how a blurry effect can be achieved to the images.import 'package:getwidget/getwidget.dart';
GFImageOverlay(
height: 200,
width: 300,
child: Center(
child: Text('Light Overlay', style:TextStyle(color:getGFColor(GFColor.white))
),
colorFilter: new ColorFilter.mode(
Colors.black.withOpacity(0.20),
BlendMode.darken),
image: AssetImage('your asset image')
)
GF Flutter Image Custom Properties
The custom properties of GFImage are given below to customize the look and feel of the image.| Name | Description |
|---|---|
| height | defines the height of the image |
| width | defines the width of the image |
| color | defines the background color of the image |
| margin | image's outer container margin |
| padding | image's outer container padding |
| alignment | to align the child within the image |
| boxFit | how to image should be inscribed into the box |
| borderRadius | the corners of the image |
| border | the border above the image |
Can we use network image in image overlay?
Yes, we can use any kind of image whether an asset image or a network image.Can we use the circular image as an avatar image?
Yes, we can use the circular image as an avatar image by adjusting the height and width of the image. Flutter Get Widget DocsFlutter GetWidget Docs
Get Widget is one of the largest Flutter open-source UI Kit libraries for mobile or web apps. It has more than 1000+ pre-built reusable widgets.


