mirrored_repositories/flutter_schedule_app/lib/modules/home
import 'package:flutter/material.dart';
import 'package:get/route_manager.dart';
import 'package:schedulemanager/routes/app_routes.dart';
import '../../../app/config/constants.dart';
import '../../../app/utils/responsive_util.dart';
import '../../../widgets/custom_button.dart';

import '../../../app/utils/text_styles.dart';

class NoEventsWidget extends StatelessWidget {
  const NoEventsWidget({super.key});

  @override
  Widget build(BuildContext context) {
    final resp = ResponsiveUtil.of(context);
    final styles = TextStyles.of(context);
    return Column(
      children: [
        SizedBox(height: resp.hp(1)),
        Opacity(
          opacity: 0.5,
          child: Image.asset(
            'assets/images/no_data_image.png',
            height: resp.hp(15),
            width: resp.width,
          ),
        ),
        SizedBox(height: resp.hp(2.5)),
        Text('No events found', style: styles.w700(16)),
        Text(
          'You can click on the button to add an event.',
          style: styles.w500(14),
        ),
        SizedBox(height: resp.hp(1.5)),
        CustomButton(
          text: 'Add event',
          color: lightBlue,
          hideShadows: true,
          style: styles.w500(14, blueAccent),
          onTap: () => Get.toNamed(AppRoutes.eventDetails),
        ),
      ],
    );
  }
}
