Delete login page and add function for http requet
This commit is contained in:
BIN
motula_translate_app/assets/Logo/logoMottola.png
Normal file
BIN
motula_translate_app/assets/Logo/logoMottola.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 155 KiB |
BIN
motula_translate_app/assets/icons/flagMottola.png
Normal file
BIN
motula_translate_app/assets/icons/flagMottola.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1011 KiB |
BIN
motula_translate_app/assets/icons/italy.png
Normal file
BIN
motula_translate_app/assets/icons/italy.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.2 KiB |
BIN
motula_translate_app/assets/icons/next.png
Normal file
BIN
motula_translate_app/assets/icons/next.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 14 KiB |
@@ -13,20 +13,28 @@ class HomePage extends StatelessWidget {
|
|||||||
body: SingleChildScrollView(
|
body: SingleChildScrollView(
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
Image(
|
const SizedBox(height: 50),
|
||||||
image: AssetImage('assets/Logo/LogoHome.png'),
|
Image.asset('assets/Logo/logoMottola.png', width: 250, height: 250),
|
||||||
),
|
const SizedBox(height: 20),
|
||||||
Row(children: [
|
//const Image(
|
||||||
Text('TO', style: TextStyle(fontSize: 30, color: Colors.grey[800])),
|
// image: AssetImage('assets/Logo/logoMottola.png',),
|
||||||
Text('--->', style: TextStyle(fontSize: 30, color: Colors.grey[800])),
|
//),
|
||||||
Text('DO', style: TextStyle(fontSize: 30, color: Colors.grey[800])),
|
Row(
|
||||||
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
|
children: [
|
||||||
|
Image.asset('assets/icons/italy.png', width: 50, height: 50),
|
||||||
|
const SizedBox(width: 20),
|
||||||
|
Image.asset('assets/icons/next.png', width: 30, height:30),
|
||||||
|
const SizedBox(width: 10),
|
||||||
|
//Text(' --> ', style: TextStyle(fontSize: 30, color: Colors.grey[800])),
|
||||||
|
Image.asset('assets/icons/flagMottola.png', width: 64, height: 64),
|
||||||
]),
|
]),
|
||||||
const SizedBox(height: 20),
|
const SizedBox(height: 20),
|
||||||
TextField(
|
TextField(
|
||||||
keyboardType: TextInputType.multiline,
|
keyboardType: TextInputType.multiline,
|
||||||
maxLines: null,
|
maxLines: null,
|
||||||
style: TextStyle(fontSize: 20, color: Colors.grey[800]),
|
style: TextStyle(fontSize: 20, color: Colors.grey[800]),
|
||||||
decoration: InputDecoration(
|
decoration: const InputDecoration(
|
||||||
hintText: 'Parola Italiana',
|
hintText: 'Parola Italiana',
|
||||||
hintStyle: TextStyle(fontSize: 20)
|
hintStyle: TextStyle(fontSize: 20)
|
||||||
),
|
),
|
||||||
@@ -36,17 +44,16 @@ class HomePage extends StatelessWidget {
|
|||||||
onPressed: () {
|
onPressed: () {
|
||||||
|
|
||||||
},
|
},
|
||||||
child: const Text('Traduci'),
|
child: Text('Traduci'),
|
||||||
style: ElevatedButton.styleFrom(
|
style: ElevatedButton.styleFrom(
|
||||||
backgroundColor: Colors.orange,
|
backgroundColor: Colors.orange,
|
||||||
padding: EdgeInsets.symmetric(horizontal: 50, vertical: 20),
|
padding: const EdgeInsets.symmetric(horizontal: 50, vertical: 20),
|
||||||
textStyle: TextStyle(
|
textStyle: const TextStyle(
|
||||||
fontSize: 15,
|
fontSize: 15,
|
||||||
fontWeight: FontWeight.bold)),
|
fontWeight: FontWeight.bold)),
|
||||||
),
|
),
|
||||||
const SizedBox(height: 30),
|
const SizedBox(height: 30),
|
||||||
WordsScreen(),
|
WordsScreen(),
|
||||||
//Text('ToDo', style: TextStyle(fontSize: 30, color: Colors.grey[800]))
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user