import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; class BaishunLoadingView extends StatelessWidget { const BaishunLoadingView({ super.key, this.message = 'Loading game...', }); final String message; @override Widget build(BuildContext context) { return Positioned.fill( child: Container( color: Colors.black.withValues(alpha: 0.42), alignment: Alignment.center, child: Container( padding: EdgeInsets.symmetric(horizontal: 22.w, vertical: 18.w), decoration: BoxDecoration( color: const Color(0xFF102D28).withValues(alpha: 0.92), borderRadius: BorderRadius.circular(16.w), border: Border.all( color: Colors.white.withValues(alpha: 0.1), ), ), child: Column( mainAxisSize: MainAxisSize.min, children: [ const CupertinoActivityIndicator(color: Colors.white), SizedBox(height: 10.w), Text( message, style: TextStyle( color: Colors.white, fontSize: 13.sp, fontWeight: FontWeight.w500, ), ), ], ), ), ), ); } }