BannerStyle.downloadFonts constructor
BannerStyle.downloadFonts({
- required bool isDark,
- required BuildContext context,
Implementation
factory BannerStyle.downloadFonts(
{required bool isDark, required BuildContext context}) {
final isLandscape =
MediaQuery.of(context).orientation == Orientation.landscape;
return BannerStyle(
isImage: false,
bannerSvgPath: isDark
? AssetsPath.assets.surahSvgBannerDark
: AssetsPath.assets.surahSvgBanner,
bannerSvgHeight: isLandscape ? 170.0.h : 35.0.h,
bannerSvgWidth: isLandscape ? 250.0.w : 120.0.w,
bannerImagePath: '',
bannerImageHeight: 50,
bannerImageWidth: double.infinity,
svgBannerColor: null,
);
}