Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions lib/widgets/err_dialogs.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ library;

import 'package:flutter/material.dart';

import 'package:notepod/constants/ui.dart';

Future<void> showErrDialog(BuildContext context, String errMsg) async {
return showDialog<void>(
context: context,
Expand All @@ -49,6 +51,12 @@ Future<void> showErrDialog(BuildContext context, String errMsg) async {
),
),
actions: <Widget>[
TextButton(
child: const Text(ButtonLabel.back),
onPressed: () {
Navigator.of(context).pop();
},
),
TextButton(
child: const Text('OK'),
onPressed: () {
Expand Down
Loading