Reputation: 3147
is it possible to change the MaterialBanner direction to be RTL ?
(so the action button will show on the left side, and the leading icon on the right instead of the default way)
i tried all the solutions mentioned here but none worked,
Upvotes: 1
Views: 134
Reputation: 9166
there is a flutter widget that flows up in mind when I read this :
direction to be RTL (so the action button will show on the left side and the leading icon on the right instead of the default way)
it's the Directionnality
widget.
literally, the use of it is to change the position of widgets from LTR to RTL and vice-versa.
just wrap you widget like this
Upvotes: 3