#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
In questa pagina del sito puoi guardare il video online 04 - ActionChip | della durata di ore minuti seconda in buona qualità , che l'utente ha caricato TECHIE BLOSSOM 09 novembre 2023, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 261 volte e gli è piaciuto 13 spettatori. Buona visione!