32 lines
839 B
Dart
32 lines
839 B
Dart
|
import 'package:flutter/widgets.dart';
|
||
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||
|
|
||
|
import '../constants/constants.dart';
|
||
|
|
||
|
class MyLoading extends StatelessWidget {
|
||
|
const MyLoading(this.msg, {Key? key}) : super(key: key);
|
||
|
|
||
|
final String msg;
|
||
|
|
||
|
@override
|
||
|
Widget build(BuildContext context) {
|
||
|
return Container(
|
||
|
height: 168.h,
|
||
|
padding: REdgeInsets.symmetric(horizontal: 64.0, vertical: 18.0),
|
||
|
decoration: BoxDecoration(
|
||
|
color: Colours.gray_33,
|
||
|
borderRadius: BorderRadius.circular(9.0).r,
|
||
|
),
|
||
|
child: Column(
|
||
|
mainAxisAlignment: MainAxisAlignment.center,
|
||
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||
|
children: [
|
||
|
Images.loading,
|
||
|
Gaps.vGap3,
|
||
|
Text(msg, style: TextStyles.mediumWhite18),
|
||
|
],
|
||
|
),
|
||
|
);
|
||
|
}
|
||
|
}
|