modify layout and add function to print error and text translate
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user