Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get Euro symbol or Indian currency symbol in my flutter app?

So, I was making this Budget Manager app as I was learning flutter, I want to add a Indian rupee symbol. I had checked the official docs and found a lib called Unicode.dart, however the explanation is not clear. I also searched how to input a rupee symbol in android but that is also not working because the solution is Java or Kotlin specific rather than dart or flutter.

https://pub.dev/packages/unicode#-readme-tab- --Unicode library for flutter

Set Indian Rupee symbol on text view --the android specific

like image 676
Tarster Avatar asked Mar 21 '20 14:03

Tarster


People also ask

How can I add Indian currency symbol?

The Union government, preferring the keyboard combination mode to a key dedicated to the symbol, has shortlisted two command options to get the rupee symbol: Alt+R and Alt+4.


3 Answers

How about this?

Text('\u{20B9}'),
like image 78
Yuu Woods Avatar answered Oct 21 '22 05:10

Yuu Woods


You can combine string interpolation and unicode character

Text('\u{20B9}${your amount}'),

This is to get Indian currency symbol rupee in your flutter app.

like image 43
Vishwa63 Avatar answered Oct 21 '22 06:10

Vishwa63


for euro symbol i found solution on the official website https://api.flutter.dev/flutter/material/Icons/euro_symbol-constant.html

I used this code step 1 : create constant file

mport 'package:flutter/material.dart';
const IconData euro_symbol = IconData(0xe23c, fontFamily: 'MaterialIcons');

step 2: Use this icon with your prefered textview enter image description here

like image 1
Raj Jani Avatar answered Oct 21 '22 05:10

Raj Jani