nc-photos/lib/widget/processing_dialog.dart

29 lines
622 B
Dart
Raw Normal View History

2021-07-02 21:44:05 +02:00
import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
class ProcessingDialog extends StatelessWidget {
2021-09-15 08:58:06 +02:00
const ProcessingDialog({
2021-07-23 22:05:57 +02:00
Key? key,
required this.text,
2021-09-15 08:58:06 +02:00
}) : super(key: key);
2021-07-02 21:44:05 +02:00
@override
build(BuildContext context) {
return WillPopScope(
onWillPop: () => Future.value(false),
child: AlertDialog(
content: Row(
mainAxisSize: MainAxisSize.min,
children: [
2021-09-15 08:58:06 +02:00
const CircularProgressIndicator(),
2021-07-02 21:44:05 +02:00
const SizedBox(width: 24),
Text(text),
],
),
),
);
}
final String text;
}