content: import 'package:bb_mobile/core/themes/app_theme.dart';
  import 'package:bb_mobile/core/widgets/bottom_sheet/x.dart';
  import 'package:bb_mobile/core/widgets/buttons/button.dart';
  import 'package:flutter/material.dart';
  import 'package:gap/gap.dart';
  
  class PrivacyNoticeBottomSheet extends StatelessWidget {
    const PrivacyNoticeBottomSheet({super.key});
  
    static Future<bool?> show(BuildContext context) {
      return BlurredBottomSheet.show<bool?>(
        context: context,
        child: const PrivacyNoticeBottomSheet(),
      );
    }
  
    @override
    Widget build(BuildContext context) {
      return Container(
        constraints: BoxConstraints(
          maxHeight: MediaQuery.of(context).size.height * 0.8,
        ),
        decoration: BoxDecoration(
          color: context.colour.onPrimary,
          borderRadius: const BorderRadius.vertical(top: Radius.circular(32)),
        ),
        child: Column(
          mainAxisSize: MainAxisSize.min,
          crossAxisAlignment: CrossAxisAlignment.start,
          children: [
            Padding(
              padding: const EdgeInsets.symmetric(horizontal: 24, vertical: 10),
              child: Column(
                children: [
                  const Gap(20),
                  Row(
                    mainAxisAlignment: MainAxisAlignment.spaceBetween,
                    children: [
                      const Gap(24),
                      Text('Privacy Notice', style: context.font.headlineMedium),
                      GestureDetector(
                        onTap: () => Navigator.of(context).pop(false),
                        child: const Icon(Icons.close),
                      ),
                    ],
                  ),
                ],
              ),
            ),
            Flexible(
              child: SingleChildScrollView(
                child: Padding(
                  padding: const EdgeInsets.all(24.0),
                  child: Column(
                    crossAxisAlignment: CrossAxisAlignment.start,
                    children: [
                      Text(
                        'Privacy Notice: Using your own node ensures that no third party can link your IP address, with your transactions.',
                        style: context.font.bodyMedium,
                        maxLines: 4,
                      ),
                      const Gap(24),
                      Text(
                        'However, If you view transactions via mempool by clicking your Transaction ID or Recipient Details page, this information will be known to BullBitcoin.',
                        maxLines: 4,
                        style: context.font.bodyMedium,
                      ),
                      const Gap(32),
                      Row(
                        children: [
                          Expanded(
                            child: BBButton.big(
                              label: 'Cancel',
                              onPressed: () => Navigator.of(context).pop(false),
                              bgColor: Colors.transparent,
                              outlined: true,
                              textStyle: context.font.headlineLarge,
                              textColor: context.colour.secondary,
                            ),
                          ),
                          const Gap(16),
                          Expanded(
                            child: BBButton.big(
                              label: 'Save',
                              onPressed: () => Navigator.of(context).pop(true),
                              bgColor: context.colour.secondary,
                              textStyle: context.font.headlineLarge,
                              textColor: context.colour.onSecondary,
                            ),
                          ),
                        ],
                      ),
                      const Gap(30),
                    ],
                  ),
                ),
              ),
            ),
          ],
        ),
      );
    }
  }
  