nc-photos/app/lib/widget/processing_dialog.dart
2022-04-06 02:37:58 +08:00

27 lines
583 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 WillPopScope(
onWillPop: () => Future.value(false),
child: AlertDialog(
content: Row(
mainAxisSize: MainAxisSize.min,
children: [
const CircularProgressIndicator(),
const SizedBox(width: 24),
Text(text),
],
),
),
);
}
final String text;
}