content: import 'package:flutter/material.dart';
  import 'package:miro/config/app_icons.dart';
  import 'package:miro/config/theme/design_colors.dart';
  import 'package:miro/shared/router/kira_router.dart';
  import 'package:miro/views/widgets/generic/responsive/responsive_widget.dart';
  
  class TxAppBar extends StatelessWidget {
    const TxAppBar({
      Key? key,
    }) : super(key: key);
  
    @override
    Widget build(BuildContext context) {
      return Container(
        padding: _selectAppBarPadding(context),
        child: Row(
          children: <Widget>[
            IconButton(
              onPressed: () => _closeDialog(context),
              color: DesignColors.white1,
              icon: const Icon(
                AppIcons.cancel,
                size: 24,
                color: DesignColors.white1,
              ),
            ),
            const Spacer(),
          ],
        ),
      );
    }
  
    void _closeDialog(BuildContext context) {
      KiraRouter.of(context).pop();
    }
  
    EdgeInsets _selectAppBarPadding(BuildContext context) {
      if (ResponsiveWidget.isSmallScreen(context)) {
        return const EdgeInsets.symmetric(horizontal: 10, vertical: 10);
      } else {
        return const EdgeInsets.all(40);
      }
    }
  }
  