nc-photos/app/lib/widget/processing_dialog.dart

29 lines
639 B
Dart
Raw Normal View History

2021-07-02 21:44:05 +02:00
import 'package:flutter/material.dart';
2024-08-10 13:13:56 +02:00
import 'package:nc_photos/widget/app_intermediate_circular_progress_indicator.dart';
2021-07-02 21:44:05 +02:00
class ProcessingDialog extends StatelessWidget {
2021-09-15 08:58:06 +02:00
const ProcessingDialog({
2024-05-28 17:10:33 +02:00
super.key,
2021-07-23 22:05:57 +02:00
required this.text,
2024-05-28 17:10:33 +02:00
});
2021-07-02 21:44:05 +02:00
@override
build(BuildContext context) {
return PopScope(
canPop: false,
2021-07-02 21:44:05 +02:00
child: AlertDialog(
content: Row(
mainAxisSize: MainAxisSize.min,
children: [
2024-08-10 13:13:56 +02:00
const AppIntermediateCircularProgressIndicator(),
2021-07-02 21:44:05 +02:00
const SizedBox(width: 24),
Text(text),
],
),
),
);
}
final String text;
}