54 lines
1.7 KiB
Dart
54 lines
1.7 KiB
Dart
import 'package:flutter/material.dart';
|
|
|
|
class EventScreen extends StatelessWidget {
|
|
const EventScreen({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
appBar: AppBar(
|
|
title: const Text('Créer un Événement'),
|
|
backgroundColor: Colors.blueAccent,
|
|
),
|
|
body: Padding(
|
|
padding: const EdgeInsets.all(16.0),
|
|
child: Column(
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
children: [
|
|
const Text(
|
|
'Titre de l\'événement',
|
|
style: TextStyle(fontSize: 18, color: Colors.white),
|
|
),
|
|
const SizedBox(height: 8),
|
|
TextField(
|
|
decoration: InputDecoration(
|
|
hintText: 'Entrez le titre de l\'événement',
|
|
filled: true,
|
|
fillColor: Colors.white.withOpacity(0.1),
|
|
border: OutlineInputBorder(
|
|
borderRadius: BorderRadius.circular(10.0),
|
|
borderSide: BorderSide.none,
|
|
),
|
|
hintStyle: const TextStyle(color: Colors.white70),
|
|
),
|
|
style: const TextStyle(color: Colors.white),
|
|
),
|
|
const SizedBox(height: 20),
|
|
ElevatedButton(
|
|
onPressed: () {
|
|
// Logique pour créer l'événement
|
|
},
|
|
style: ElevatedButton.styleFrom(
|
|
backgroundColor: Colors.blueAccent,
|
|
padding: const EdgeInsets.all(16.0),
|
|
),
|
|
child: const Text('Créer l\'événement'),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
backgroundColor: Colors.black,
|
|
);
|
|
}
|
|
}
|