Delete login page and add function for http requet

This commit is contained in:
paoloGuagnano
2024-03-20 17:40:51 +01:00
parent 22ccd61986
commit ef9fba11c8
6 changed files with 102 additions and 155 deletions

View File

@@ -1,8 +1,8 @@
import 'package:flutter/material.dart';
import '../../model/course.dart';
import 'components/course_card.dart';
import 'components/secondary_course_card.dart';
import '../../model/word.dart';
import 'components/words_screen.dart';
class HomePage extends StatelessWidget {
const HomePage({super.key});
@@ -10,37 +10,46 @@ class HomePage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
body: SafeArea(
bottom: false,
child: SingleChildScrollView(
body: SingleChildScrollView(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
const SizedBox(height: 30),
Image(
image: AssetImage('assets/Logo/LogoHome.png'),
),
Row(children: [
Text('TO', style: TextStyle(fontSize: 30, color: Colors.grey[800])),
Text('--->', style: TextStyle(fontSize: 30, color: Colors.grey[800])),
Text('DO', style: TextStyle(fontSize: 30, color: Colors.grey[800])),
]),
const SizedBox(height: 20),
TextField(
keyboardType: TextInputType.text,
keyboardType: TextInputType.multiline,
maxLines: null,
style: TextStyle(fontSize: 20, color: Colors.grey[800]),
decoration: InputDecoration(
hintText: 'Parola Italiana'
hintText: 'Parola Italiana',
hintStyle: TextStyle(fontSize: 20)
),
),
const SizedBox(height: 20),
ElevatedButton(
onPressed: () {},
onPressed: () {
},
child: const Text('Traduci'),
style: ElevatedButton.styleFrom(
backgroundColor: Colors.orange,
backgroundColor: Colors.orange,
padding: EdgeInsets.symmetric(horizontal: 50, vertical: 20),
textStyle: TextStyle(
fontSize: 15,
fontWeight: FontWeight.bold)),
),
Text('')
const SizedBox(height: 30),
WordsScreen(),
//Text('ToDo', style: TextStyle(fontSize: 30, color: Colors.grey[800]))
],
),
),
),
);
}
}