Delete login page and add function for http requet
This commit is contained in:
@@ -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]))
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user