BasmallahWidget constructor

const BasmallahWidget({
  1. Key? key,
  2. required int surahNumber,
  3. BasmalaStyle? basmalaStyle,
})

A widget that displays the Basmallah (In the name of Allah) image.

The image displayed depends on the surahNumber. If the surahNumber is 95 or 97, a specific Basmallah image is shown. Otherwise, a default Basmallah image is displayed.

The appearance of the Basmallah image can be customized using the basmalaStyle.

Example usage:

BasmallahWidget(
  surahNumber: 1,
  basmalaStyle: BasmalaStyle(
    basmalaWidth: 200,
    basmalaHeight: 50,
    basmalaColor: Colors.black,
  ),
)

The BasmalaStyle class allows you to specify the width, height, and color of the Basmallah image.

Implementation

const BasmallahWidget({
  super.key,
  required this.surahNumber,
  this.basmalaStyle,
});