nc-photos/lib/widget/processing_dialog.dart
2021-07-25 00:23:08 +08:00

28 lines
592 B
Dart

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