nc-photos/app/lib/widget/processing_dialog.dart
2024-05-21 23:42:28 +08:00

27 lines
556 B
Dart

import 'package:flutter/material.dart';
class ProcessingDialog extends StatelessWidget {
const ProcessingDialog({
Key? key,
required this.text,
}) : super(key: key);
@override
build(BuildContext context) {
return PopScope(
canPop: false,
child: AlertDialog(
content: Row(
mainAxisSize: MainAxisSize.min,
children: [
const CircularProgressIndicator(),
const SizedBox(width: 24),
Text(text),
],
),
),
);
}
final String text;
}