28 lines
840 B
Dart
28 lines
840 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:gap/gap.dart';
|
|
import 'package:loading_animation_widget/loading_animation_widget.dart';
|
|
import 'package:ocbo_esign_mobile/widgets/text_widget.dart';
|
|
|
|
class LoadingWidget extends StatelessWidget {
|
|
final String? text;
|
|
|
|
const LoadingWidget({super.key, this.text});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Center(
|
|
child: Column(
|
|
children: [
|
|
LoadingAnimationWidget.discreteCircle(
|
|
color: const Color.fromRGBO(164, 168, 229, 0.8),
|
|
secondRingColor: const Color.fromRGBO(141, 145, 210, 0.8),
|
|
thirdRingColor: const Color.fromRGBO(117, 123, 204, 0.8),
|
|
size: 60,
|
|
),
|
|
const Gap(16),
|
|
TextWidget(text: text ?? '', size: 16, bold: true),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|