import 'package:flutter/material.dart';
import 'package:test_sa/extensions/context_extension.dart';
import 'package:test_sa/extensions/int_extensions.dart';
import 'package:test_sa/extensions/text_extensions.dart';
import 'package:test_sa/new_views/app_style/app_color.dart';

class NoDataFound extends StatelessWidget {
  final String? message;

  const NoDataFound({Key? key, this.message}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Column(
      crossAxisAlignment: CrossAxisAlignment.center,
      mainAxisAlignment: MainAxisAlignment.center,
      spacing: 16,
      children: [
        "no_data_found".toSvgAsset(height: 64, width: 64, color: AppColor.lightTextColor(context)),
        Text(message ?? "no Data found", style: AppTextStyles.heading6.copyWith(color: AppColor.lightTextColor(context))),
      ],
    );
  }
}
