mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-04-21 22:39:11 +00:00
39 lines
No EOL
957 B
Dart
39 lines
No EOL
957 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
class ProcessDialog extends StatelessWidget {
|
|
final String message;
|
|
|
|
const ProcessDialog({
|
|
Key? key,
|
|
required this.message,
|
|
}) : super(key: key);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return WillPopScope(
|
|
onWillPop: () async => false,
|
|
child: Dialog(
|
|
backgroundColor: Theme.of(context).dialogBackgroundColor,
|
|
child: Padding(
|
|
padding: const EdgeInsets.symmetric(
|
|
vertical: 30,
|
|
horizontal: 30
|
|
),
|
|
child: Row(
|
|
mainAxisSize: MainAxisSize.min,
|
|
children: [
|
|
const CircularProgressIndicator(),
|
|
const SizedBox(width: 40),
|
|
Text(
|
|
message,
|
|
style: TextStyle(
|
|
color: Theme.of(context).colorScheme.onSurface
|
|
),
|
|
)
|
|
],
|
|
),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
} |