47 lines
1.3 KiB
Dart
47 lines
1.3 KiB
Dart
import 'package:flutter/material.dart';
|
|
|
|
import '../../model/course.dart';
|
|
import 'components/course_card.dart';
|
|
import 'components/secondary_course_card.dart';
|
|
|
|
class HomePage extends StatelessWidget {
|
|
const HomePage({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
body: SafeArea(
|
|
bottom: false,
|
|
child: SingleChildScrollView(
|
|
child: Column(
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
children: [
|
|
const SizedBox(height: 30),
|
|
Image(
|
|
image: AssetImage('assets/Logo/LogoHome.png'),
|
|
),
|
|
TextField(
|
|
keyboardType: TextInputType.text,
|
|
decoration: InputDecoration(
|
|
hintText: 'Parola Italiana'
|
|
),
|
|
),
|
|
ElevatedButton(
|
|
onPressed: () {},
|
|
child: const Text('Traduci'),
|
|
style: ElevatedButton.styleFrom(
|
|
backgroundColor: Colors.orange,
|
|
padding: EdgeInsets.symmetric(horizontal: 50, vertical: 20),
|
|
textStyle: TextStyle(
|
|
fontSize: 15,
|
|
fontWeight: FontWeight.bold)),
|
|
),
|
|
Text('')
|
|
],
|
|
),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|