widgets/widgets library
Classes
- CustomButton
- CustomNetworkImage
-
CustomNetworkImage is a custom image widget
isFromAPIis define your image from api or internetapiUrlifisFromAPIthen apiUrl is requiredapiUrlifisFromAPIthenapiExtraSlagis optional errorImagePath is your local assets path (optional)/errorIconData is iconData (optional) if your image is not exists or internet connection is failed then this image show to user Define CustomNetworkImage when is from api url CustomNetworkImage( isFromAPI: true, isPreviewPageNeed: false, networkImagePathFromAPI: UserController.to.getUserInfo.profilePhotoUrl ?? '', apiUrl: Service.apiUrl, width: 70, height: 70, errorImagePath: 'images/image/user-default.png', fit: BoxFit.cover, ) - CustomTextField
- GiveARatingWidget
- ImagePreview
- MarqueeWidget
- MyDivider
- NetworkImageWidget
- RatingWidget
- TitleDropdown
- ToastManager
- ToastWidget
Enums
- DropdownListType
- NetworkImageBorder
- RatingTextPosition
- ToastPosition
- determines the position of the toast
Functions
-
getImageUrl(
String url) → String -
getImageUrl is a function for get image url from api
urlis your image url getImageUrl return image url Define getImageUrl when is from api url