|
|
|
@ -435,7 +435,7 @@ class _DashboardScreenState extends State<DashboardScreen> with WidgetsBindingOb
|
|
|
|
child: ListView.separated(
|
|
|
|
child: ListView.separated(
|
|
|
|
shrinkWrap: true,
|
|
|
|
shrinkWrap: true,
|
|
|
|
scrollDirection: Axis.horizontal,
|
|
|
|
scrollDirection: Axis.horizontal,
|
|
|
|
padding: const EdgeInsets.symmetric(horizontal: 24),
|
|
|
|
padding: const EdgeInsets.symmetric(horizontal: 0),
|
|
|
|
itemCount: model.greetingCardsList!.length,
|
|
|
|
itemCount: model.greetingCardsList!.length,
|
|
|
|
separatorBuilder: (context, index) => const SizedBox(width: 24),
|
|
|
|
separatorBuilder: (context, index) => const SizedBox(width: 24),
|
|
|
|
itemBuilder: (context, index) {
|
|
|
|
itemBuilder: (context, index) {
|
|
|
|
@ -444,7 +444,7 @@ class _DashboardScreenState extends State<DashboardScreen> with WidgetsBindingOb
|
|
|
|
AppState().isArabic(context)
|
|
|
|
AppState().isArabic(context)
|
|
|
|
? (card.backgroundImageUrlAr ?? "https://www.hmg.com/Lists/CS_Greeting_Cards/Attachments/5/CS_Ramadan_26.jpg")
|
|
|
|
? (card.backgroundImageUrlAr ?? "https://www.hmg.com/Lists/CS_Greeting_Cards/Attachments/5/CS_Ramadan_26.jpg")
|
|
|
|
: (card.backgroundImageUrlEn ?? "https://www.hmg.com/Lists/CS_Greeting_Cards/Attachments/5/CS_Ramadan_26.jpg"),
|
|
|
|
: (card.backgroundImageUrlEn ?? "https://www.hmg.com/Lists/CS_Greeting_Cards/Attachments/5/CS_Ramadan_26.jpg"),
|
|
|
|
fit: BoxFit.fill,
|
|
|
|
fit: BoxFit.contain,
|
|
|
|
placeholderBuilder: (context) => ClipRRect(borderRadius: BorderRadius.circular(18), child: Container(height: 80, color: Colors.white).toShimmer()),
|
|
|
|
placeholderBuilder: (context) => ClipRRect(borderRadius: BorderRadius.circular(18), child: Container(height: 80, color: Colors.white).toShimmer()),
|
|
|
|
).onPress(() {
|
|
|
|
).onPress(() {
|
|
|
|
launchUrl(Uri.parse(AppState().isArabic(context) ? card.urlAr! : card.urlEn!));
|
|
|
|
launchUrl(Uri.parse(AppState().isArabic(context) ? card.urlAr! : card.urlEn!));
|
|
|
|
|