modify layout and add function to print error and text translate

This commit is contained in:
paoloGuagnano
2024-04-29 17:06:47 +02:00
parent 928f79fbf9
commit 5b6ee75ca8
2 changed files with 57 additions and 30 deletions

View File

@@ -17,7 +17,7 @@ class WordsScreen extends StatefulWidget {
class _WordsScreenState extends State<WordsScreen> {
Future<Word> fetchWord() async {
final response = await http.get(
Uri.parse("https://9152-37-101-56-133.ngrok-free.app/api/words/tasto"));
Uri.parse("https://d06f-151-45-52-98.ngrok-free.app/api/words/tasto"));
if (response.statusCode == 200) {
return Word.fromJson(jsonDecode(response.body));