mirror of
https://github.com/go-vikunja/app
synced 2024-06-03 02:59:47 +00:00
ee99869cf6
* Ran make format Signed-off-by: Timo Reichl <timo.reichl@mailbox.org> * Add VS Code launch config Signed-off-by: Timo Reichl <timo.reichl@mailbox.org> * pages/list/list.dart: Stop spinning wheel after adding a task Signed-off-by: Timo Reichl <timo.reichl@mailbox.org> * stores/list_store.dart: Fix updateTask() not being a future Signed-off-by: Timo Reichl <timo.reichl@mailbox.org> * Replace FlatButton with TextButton widgets Signed-off-by: Timo Reichl <timo.reichl@mailbox.org> * components/TaskTile.dart: Remove dead code Signed-off-by: Timo Reichl <timo.reichl@mailbox.org> * theme/theme.dart: Fix accentColor deprecation Signed-off-by: Timo Reichl <timo.reichl@mailbox.org> * pages/list/list_edit.dart: Fix SnackBar.hideCurrentSnackBar() deprecation Signed-off-by: Timo Reichl <timo.reichl@mailbox.org> * Remove unused folder lib/managers Signed-off-by: Timo Reichl <timo.reichl@mailbox.org>
21 lines
423 B
Dart
21 lines
423 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
class ErrorDialog extends StatelessWidget {
|
|
final dynamic error;
|
|
|
|
ErrorDialog({this.error});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return AlertDialog(
|
|
content: Text(error.toString()),
|
|
actions: <Widget>[
|
|
TextButton(
|
|
child: Text('Close'),
|
|
onPressed: () => Navigator.of(context).maybePop(),
|
|
)
|
|
],
|
|
);
|
|
}
|
|
}
|