Adaptive Cards for Flutter
A Flutter implementation of Adaptive Cards.
Installing
Put this into your
pubspec.yaml
Using
Using Adaptive Cards in Flutter coudn't be simpler: All you need is the
AdaptiveCard
widget.
There are several constructors which handle data loading from different sources.
AdaptiveCard.network
takes a url to download the payload and display it.AdaptiveCard.asset
takes an asset path to load the payload from the local data.AdaptiveCard.memory
takes a map (which can be obtained but decoding a string using the json class) and displays it.
An example:
Running the tests
Simply type
and to update the golden files run
This updates the golden files for the sample cards.