// Author: fruit.com.cn import 'package:flutter/material.dart'; import '../../../core/theme/app_colors.dart'; const List _iconShadows = [ Shadow(color: AppColors.shadow, blurRadius: 6, offset: Offset(0, 1)), ]; /// Shared floating action used to leave clear-screen mode. class ExitClearScreenButton extends StatelessWidget { const ExitClearScreenButton({ super.key, required this.tooltip, required this.onPressed, }); final String tooltip; final VoidCallback onPressed; @override Widget build(BuildContext context) { return SizedBox( width: 36, height: 36, child: IconButton( tooltip: tooltip, onPressed: onPressed, padding: EdgeInsets.zero, style: IconButton.styleFrom( backgroundColor: AppColors.transparent, foregroundColor: AppColors.onPrimary, shape: const CircleBorder(), ), icon: const Icon( Icons.fullscreen_exit_rounded, size: 22, shadows: _iconShadows, ), ), ); } }