File size: 1,622 Bytes
87a2e39 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
import 'package:flutter/material.dart';
// Couleurs simulées (à remplacer par tes vraies constantes)
const Color primaryColor = Colors.deepPurple;
const Color accentColor = Colors.deepOrange;
const Color backgroundColor = Colors.white;
class Welcome extends StatelessWidget {
const Welcome({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.white,
body: SafeArea(
child: SingleChildScrollView(
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 20.0),
child: Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
// Image
Image.asset(
'assets/image.jpeg',
fit: BoxFit.contain,
height: 500,
),
// Bienvenue et sous-texte
const Text(
'Bienvenue',
style: TextStyle(
fontSize: 30,
color: Color.fromARGB(255, 33, 243, 51),
fontWeight: FontWeight.bold,
),
textAlign: TextAlign.center,
),
const SizedBox(height: 10),
const Text(
'Application Tout en un',
style: TextStyle(fontSize: 16, color: Colors.grey),
textAlign: TextAlign.center,
),
],
),
),
),
),
);
}
}
|