41 lines
1.0 KiB
Dart
41 lines
1.0 KiB
Dart
|
|
import 'package:enaklo_pos/core/constants/colors.dart';
|
||
|
|
import 'package:flutter/material.dart';
|
||
|
|
|
||
|
|
class VoidLoading extends StatelessWidget {
|
||
|
|
const VoidLoading({
|
||
|
|
super.key,
|
||
|
|
});
|
||
|
|
|
||
|
|
@override
|
||
|
|
Widget build(BuildContext context) {
|
||
|
|
return Container(
|
||
|
|
color: Colors.black.withOpacity(0.3),
|
||
|
|
child: Center(
|
||
|
|
child: Container(
|
||
|
|
padding: EdgeInsets.all(20),
|
||
|
|
decoration: BoxDecoration(
|
||
|
|
color: Colors.white,
|
||
|
|
borderRadius: BorderRadius.circular(12),
|
||
|
|
),
|
||
|
|
child: Column(
|
||
|
|
mainAxisSize: MainAxisSize.min,
|
||
|
|
children: [
|
||
|
|
CircularProgressIndicator(
|
||
|
|
valueColor: AlwaysStoppedAnimation<Color>(AppColors.primary),
|
||
|
|
),
|
||
|
|
SizedBox(height: 16),
|
||
|
|
Text(
|
||
|
|
'Processing void...',
|
||
|
|
style: TextStyle(
|
||
|
|
fontSize: 16,
|
||
|
|
fontWeight: FontWeight.w500,
|
||
|
|
),
|
||
|
|
),
|
||
|
|
],
|
||
|
|
),
|
||
|
|
),
|
||
|
|
),
|
||
|
|
);
|
||
|
|
}
|
||
|
|
}
|