mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-12-30 14:58:52 +00:00
18 lines
437 B
Dart
18 lines
437 B
Dart
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()),
|
|
textColor: Colors.red,
|
|
);
|
|
}
|
|
}
|