46 lines
1.3 KiB
Dart
46 lines
1.3 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
|
|
|
import '../config/theme.dart';
|
|
|
|
Widget showCustomLoadingDialog(BuildContext context) {
|
|
return SizedBox(
|
|
width: MediaQuery.of(context).size.width,
|
|
height: MediaQuery.of(context).size.height,
|
|
// decoration: BoxDecoration(
|
|
// color: blackColor.withOpacity(0.5),
|
|
// ),
|
|
child: Column(
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
children: [
|
|
Container(
|
|
width: 320.w,
|
|
height: 100.h,
|
|
padding: EdgeInsets.all(18.w),
|
|
decoration: BoxDecoration(
|
|
color: dialogColor,
|
|
borderRadius: BorderRadius.circular(10.w),
|
|
),
|
|
child: Row(
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
|
children: [
|
|
SizedBox(
|
|
width: 25,
|
|
height: 25,
|
|
child: CircularProgressIndicator(
|
|
color: whiteColor,
|
|
),
|
|
),
|
|
Text(
|
|
'Mohon tunggu sistem\nsedang memproses data anda....',
|
|
style: robotoKecilPutih,
|
|
),
|
|
],
|
|
),
|
|
),
|
|
],
|
|
),
|
|
);
|
|
}
|