#shorts #flutter #actionchip #widgets
Action chips are displayed after primary content, such as below a card or persistently at the bottom of a screen.
The minimal ActionChip has a label. It’s a disabled chip. If you want to perform actions on tap of it and make it enable, use `onPressed`.
You can also give style to the label.
You can add `labelPadding` as well, which will add padding to the label.
Add an avatar or icon for the chip. This will appear towards left of the label.
Even you can add some accessibility. If you long press the chip you will see a tooltip.
You can customise the UI of this chip by giving custom border.
The shape can also be changed to any shape.
Background color for chip can also be customised.
This was all about flat chip. But, you can make it elevated.
Use the `elevated` type of ActionChip.
And then `elevation` and `pressedElevation` can be used.
Since, now we have elevated type. Giving a shadow also a possibility.
And surface tint color as well.
And last one is disabled color.
Nominate as a Github Star: https://bit.ly/3dLXFWJ (@TechieBlossom)
Support Us in any of the below ways:
💜 / techieblossom
💜 https://www.buymeacoffee.com/AGd0Xngci
Contributions:
👨🏻💻 / prateeksharma
👨🏻💻 https://www.github.com/TechieBlossom
Feel free to connect with me:
🤝 / sharmaprateek7
🤝 https://www.topmate.io/prateeksharma
On this page of the site you can watch the video online 04 - ActionChip | with a duration of hours minute second in good quality, which was uploaded by the user TECHIE BLOSSOM 09 November 2023, share the link with friends and acquaintances, this video has already been watched 261 times on youtube and it was liked by 13 viewers. Enjoy your viewing!