mirror of
https://github.com/localsend/localsend.git
synced 2026-04-21 07:29:08 -04:00
24 lines
570 B
Dart
24 lines
570 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:localsend_app/gen/strings.g.dart';
|
|
import 'package:routerino/routerino.dart';
|
|
|
|
class ErrorDialog extends StatelessWidget {
|
|
final String error;
|
|
|
|
const ErrorDialog({required this.error, super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return AlertDialog(
|
|
title: Text(t.dialogs.errorDialog.title),
|
|
content: SelectableText(error),
|
|
actions: [
|
|
TextButton(
|
|
onPressed: () => context.pop(),
|
|
child: Text(t.general.close),
|
|
)
|
|
],
|
|
);
|
|
}
|
|
}
|