mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-23 17:26:18 +01:00
28 lines
592 B
Dart
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;
|
|
}
|