buildPushNotification method

Widget buildPushNotification(
  1. BuildContext context
)

Implementation

Widget buildPushNotification(BuildContext context) {
  return SizedBox(
    height: 60.0,
    child: Row(
      children: [
        AppText('Push Notifications', style: TextStyles.normal(context)),
        const Spacer(),
        Switch(
          value: controller.pushNotificationsEnabled.value,
          onChanged: (value) => controller.togglePushNotifications(),
        )
      ],
    ),
  );
}