I want to create a superscript text like 2^4 then how can I do this in the flutter. If someone knows please let me know.
I want to create a superscript text like 2^4 then how can I do this in the flutter. If someone knows please let me know.
To answer your question in one liner
final String twoRaisedToFour = '2\u2074';
To know more about such unicodes refer to following answer unicode list
If this helps do accept the answer. Thank you :)
RichText class might help you - https://docs.flutter.io/flutter/widgets/RichText-class.html It is very similar to Spannable string in Android
If you need a widget then you can go with Text.rich widget or if you need a text alone then you can create List<TextSpan> with the text you have and make into a single text