saudi_currency_symbol
A lightweight Flutter widget to elegantly display prices in Saudi Riyals using a custom SAR symbol font.
This package is ideal for apps targeting the Saudi market and want to show the SAR currency symbol ( ﷼) in a unique, brand-consistent way — especially if you're using a custom font for the symbol.
✨ Features
- Display prices with a custom SAR currency symbol.
- Fully customizable font size, color, and weight.
- Supports strikethrough (e.g. for discounts or old prices).
- Easy to integrate into existing Flutter UIs.
🚀 Getting Started
1. Add dependency
Add this to your pubspec.yaml
file:
dependencies:
saudi_currency_symbol: ^1.0.0
then run:
flutter pub get
Usage
import 'package:saudi_currency_symbol/saudi_currency_symbol.dart';
SaudiCurrencySymbol(
price: 99.99,
priceStyle: TextStyle(fontSize: 18, color: Colors.black),
symbolFontSize: 16,
symbolFontColor: Colors.green,
symbolFontWeight: FontWeight.bold,
isOldPrice:false,
);
You can also show old prices with strikethrough:
SaudiCurrencySymbol(
price:150.00,
isOldPrice:true,
);
Example
import 'package:saudi_currency_symbol/saudi_currency_symbol.dart';
import 'package:flutter/material.dart';
MaterialApp(
home: Scaffold(
body: Center(
child: SaudiCurrencySymbol(
price: 49.99,
priceStyle: TextStyle(fontSize: 20, color: Colors.blue),
symbolFontColor: Colors.orange,
isOldPrice: false,
),
),
),
);
Preview
📮 Contributing
-
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
-
If you find a bug or have a feature request, feel free to open an issue.
💬 Support
- To contrib to this project, you can open a PR or an issue.
👨💻 Author
🏷 License
- This project is licensed under MIT License.