37 lines
1014 B
Dart
37 lines
1014 B
Dart
import 'package:flutter/material.dart';
|
|
import '../constants.dart';
|
|
|
|
class LoadingDialog extends StatelessWidget {
|
|
const LoadingDialog({Key? key}) : super(key: key);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return WillPopScope(
|
|
onWillPop: () async{
|
|
return false;
|
|
},
|
|
child: Scaffold(
|
|
backgroundColor: Colors.black38,
|
|
body: Center(
|
|
child: Container(
|
|
decoration: BoxDecoration(
|
|
color: Colors.white,
|
|
borderRadius: BorderRadius.circular(30),
|
|
),
|
|
padding: const EdgeInsets.all(6),
|
|
child: SizedBox(
|
|
height: 24,
|
|
width: 24,
|
|
child: CircularProgressIndicator(
|
|
color: Constants.primaryColor,
|
|
strokeWidth: 3,
|
|
backgroundColor: Constants.primaryColor.withOpacity(0.25),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
)
|
|
);
|
|
}
|
|
}
|