1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-22 21:09:21 +00:00
comunicmobile/lib/ui/widgets/dialogs/cancel_dialog_button.dart

18 lines
438 B
Dart
Raw Normal View History

2020-05-02 13:30:19 +00:00
import 'package:comunic/utils/intl_utils.dart';
import 'package:flutter/material.dart';
/// Render a cancel button for an alert dialog
///
/// @author Pierre HUBERT
class CancelDialogButton extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialButton(
onPressed: () => Navigator.of(context).pop(),
child: Text(tr("Cancel")!.toUpperCase()),
2020-05-02 13:30:19 +00:00
textColor: Colors.red,
);
}
}