2022-09-26 22:43:30 +02:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
class ProcessDialog extends StatelessWidget {
|
|
|
|
final String message;
|
|
|
|
|
|
|
|
const ProcessDialog({
|
|
|
|
Key? key,
|
|
|
|
required this.message,
|
|
|
|
}) : super(key: key);
|
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return WillPopScope(
|
|
|
|
onWillPop: () async => false,
|
|
|
|
child: Dialog(
|
|
|
|
backgroundColor: Theme.of(context).dialogBackgroundColor,
|
|
|
|
child: Padding(
|
|
|
|
padding: const EdgeInsets.symmetric(
|
|
|
|
vertical: 30,
|
|
|
|
horizontal: 30
|
|
|
|
),
|
|
|
|
child: Row(
|
2023-04-30 20:18:29 +02:00
|
|
|
mainAxisSize: MainAxisSize.min,
|
2022-09-26 22:43:30 +02:00
|
|
|
children: [
|
|
|
|
const CircularProgressIndicator(),
|
|
|
|
const SizedBox(width: 40),
|
2023-10-08 00:14:53 +02:00
|
|
|
Flexible(
|
2023-05-09 15:31:00 +02:00
|
|
|
child: Text(
|
|
|
|
message,
|
|
|
|
style: TextStyle(
|
|
|
|
color: Theme.of(context).colorScheme.onSurface
|
|
|
|
),
|
2022-11-04 22:56:00 +01:00
|
|
|
),
|
|
|
|
)
|
2022-09-26 22:43:30 +02:00
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|