import 'package:flutter/material.dart';
import 'package:flutter_pos_ecommerce/core/extensions/build_context_ext.dart';

import '../../../../../core/components/spaces.dart';
import '../../../../../core/constants/colors.dart';



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

  @override
  Widget build(BuildContext context) {
    return AlertDialog(
      scrollable: true,
      contentPadding: const EdgeInsets.all(0),
      backgroundColor: AppColors.primary,
      content: Column(
        mainAxisSize: MainAxisSize.min,
        children: [
          const Padding(
            padding: EdgeInsets.all(12.0),
            child: Text(
              'Pembayaran QRIS',
              style: TextStyle(
                color: Colors.white,
                fontSize: 16,
                fontFamily: 'Quicksand',
                fontWeight: FontWeight.w700,
                height: 0,
              ),
            ),
          ),
          const SpaceHeight(6.0),
          Container(
            width: context.deviceWidth,
            padding: const EdgeInsets.all(14.0),
            decoration: const BoxDecoration(
              borderRadius: BorderRadius.all(Radius.circular(20.0)),
              color: AppColors.white,
            ),
            child: const Column(
              mainAxisSize: MainAxisSize.min,
              children: [
                // SizedBox(
                //   width: 256.0,
                //   height: 256.0,
                //   child: QrImageView(
                //     data: 's.id/batch11',
                //     version: QrVersions.auto,
                //   ),
                // ),
                SpaceHeight(5.0),
                Text(
                  'Scan QRIS untuk melakukan pembayaran',
                  textAlign: TextAlign.center,
                  style: TextStyle(
                    fontSize: 16,
                  ),
                ),
              ],
            ),
          ),
        ],
      ),
    );
  }
}
