saudi_riyal_symbol 0.0.7 copy "saudi_riyal_symbol: ^0.0.7" to clipboard
saudi_riyal_symbol: ^0.0.7 copied to clipboard

A Flutter package to display the Saudi Riyal currency symbol (ر.س) with customizable size and color.

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 #

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 #

Abdullah Alamary

🏷 License #

1
likes
140
points
419
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package to display the Saudi Riyal currency symbol (ر.س) with customizable size and color.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on saudi_riyal_symbol