build method

  1. @override
Widget build(
  1. BuildContext context
)
override

Builds a Column widget that displays a list of ListTileIconComponents each with a different organization and its corresponding URL to donate.

The first ListTileIconComponent is for the UNRWA organization, the second is for the Palestinian Red Crescent organization, the third is for the Baitzakat organization, and the fourth is for the Egyptian Food Bank organization.

Each ListTileIconComponent has a different icon, title, and subtitle. The subtitle is a translation of "Donate through organization name".

The ListTileIconComponents are arranged vertically in a Column widget.

The ListTileIconComponents are wrapped in a SingleChildScrollView to make the bottom sheet scrollable.

The ListTileIconComponents are also padded with a Padding widget to add a bottom padding of 16 logical pixels.

Implementation

@override
/// Builds a [Column] widget that displays a list of [ListTileIconComponent]s each
/// with a different organization and its corresponding URL to donate.
///
/// The first [ListTileIconComponent] is for the UNRWA organization, the second is
/// for the Palestinian Red Crescent organization, the third is for the
/// Baitzakat organization, and the fourth is for the Egyptian Food Bank
/// organization.
///
/// Each [ListTileIconComponent] has a different icon, title, and subtitle. The
/// subtitle is a translation of "Donate through [organization name]".
///
/// The [ListTileIconComponent]s are arranged vertically in a [Column] widget.
///
/// The [ListTileIconComponent]s are wrapped in a [SingleChildScrollView] to make
/// the bottom sheet scrollable.
///
/// The [ListTileIconComponent]s are also padded with a [Padding] widget to add a
/// bottom padding of 16 logical pixels.
Widget build(final BuildContext context) => Column(
  children: [
    ListTileIconComponent(
      icon: Icons.volunteer_activism_outlined,
      title: 'منظمة الانوروا',
      subtitle: 'نبرع هم طريق منظمة الانوروا',

      useinBorderRadius: true,
      onTap: () => {launchURL(SenseiConst.donateByUnrwaLink)},
      groupType: ListTileGroupType.top,
    ),
    ListTileIconComponent(
      icon: Icons.mode_night_outlined,
      title: 'الهلال الاحمر الفلسطيني',
      subtitle: 'تبرع عن طريق الهلال الاحمر الفلسطيني',
      onTap: () => {launchURL(SenseiConst.donateByPalestinercsLink)},
      groupType: ListTileGroupType.middle,
    ),
    ListTileIconComponent(
      icon: Icons.maps_home_work_outlined,
      title: 'بيت الزكاة والصدقات المصري',
      subtitle: 'تبرع عن طريق ابيت الزكاةو الصدقات المصري',
      onTap: () => launchURL(SenseiConst.donateByBaitzakatLink),
      groupType: ListTileGroupType.middle,
    ),
    ListTileIconComponent(
      icon: Icons.food_bank_outlined,
      title: 'بنك الطعام المصري',
      subtitle: 'تبرع عن طريقة بنك الطعام المصري',
      onTap: () => {launchURL(SenseiConst.donateByEGYFoodBankLink)},
      useinBorderRadius: true,
      groupType: ListTileGroupType.bottom,
    ),
  ],
);