mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-07-15 07:56:11 +08:00
23 lines
629 B
Dart
23 lines
629 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
import 'package:easy_localization/easy_localization.dart';
|
|
|
|
class NoteDeleteDialog extends StatelessWidget {
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return AlertDialog(
|
|
title: Text(tr('widgets.NoteDeleteDialog.title')),
|
|
actions: <Widget>[
|
|
FlatButton(
|
|
onPressed: () => Navigator.of(context).pop(false),
|
|
child: Text(tr('widgets.NoteDeleteDialog.no')),
|
|
),
|
|
FlatButton(
|
|
onPressed: () => Navigator.of(context).pop(true),
|
|
child: Text(tr('widgets.NoteDeleteDialog.yes')),
|
|
),
|
|
],
|
|
);
|
|
}
|
|
}
|