nc-photos/lib/widget/processing_dialog.dart

29 lines
592 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 {
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;
}