This document describes the migration from the v1 to the v2 version of the Giffy Dialog package.
- The
NetworkGiffyDialog
class has been replaced with theGiffyDialog.image
constructor. - The
image
property in the old API is now can be set using theImage.network
in the new API.
- The
AssetGiffyDialog
class has been replaced with theGiffyDialog.image
constructor. - The
image
property in the old API is now can be set using theImage.asset
in the new API.
- The
FlareGiffyDialog
class has been replaced with theGiffyDialog.rive
constructor. - The
flarePath
andflareAnimation
properties in the old API is now can be set using therive
property of typeRiveAnimation
in the new API.
- The
description
property in the old API is now can be set using thecontent
widget in the new API. - The
onOkButtonPressed
andonCancelButtonPressed
properties in the old API are replaced with theactions
property in the new API to handle button actions. - The
onlyOkButton
,onlyCancelButton
,buttonOkText
,buttonCancelText
and all the other button related properties in the old API is no longer available and has been replaced with theactions
property in the new API to handle button actions. - The
cornerRadius
property in the old API is now can be set using theshape
property in the new API.