From eebc8aeee334dd1c1c619bac2c8675d72bcefdb8 Mon Sep 17 00:00:00 2001 From: Felix Date: Fri, 16 Aug 2019 14:22:06 +0100 Subject: [PATCH] nicer error message --- lib/common/apifunctions/request_login_api.dart | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/common/apifunctions/request_login_api.dart b/lib/common/apifunctions/request_login_api.dart index 9cdc0ef..3d3bfcb 100644 --- a/lib/common/apifunctions/request_login_api.dart +++ b/lib/common/apifunctions/request_login_api.dart @@ -4,7 +4,6 @@ import 'dart:convert'; import 'package:flutter/material.dart'; import 'package:http/http.dart' as http; import 'package:local_spend/common/functions/save_current_login.dart'; -import 'package:local_spend/common/functions/show_dialog_single_button.dart'; import 'package:local_spend/model/json/login_model.dart'; Future _incorrectDialog(BuildContext context, bool isLoginWrong) async { @@ -14,7 +13,7 @@ Future _incorrectDialog(BuildContext context, bool isLoginWrong) async { builder: (BuildContext context) { return AlertDialog( title: Text("Unable to Login"), - content: Text(isLoginWrong ? "Incorrect login details. Please try again." : "The server is having issues; sorry for the inconvenience. Please try again later."), + content: Text(isLoginWrong ? "Incorrect login details. Please try again." : "Our servers are having issues at the moment; sorry for the inconvenience. Please try again later."), actions: [ FlatButton( child: Text('OK'),