Le menu de la page principale après s'être authentifié est ok

This commit is contained in:
DahoudG
2024-08-27 18:53:20 +00:00
parent e233f9f392
commit c653098560
16 changed files with 478 additions and 48 deletions

View File

@@ -0,0 +1,54 @@
import 'package:flutter/material.dart';
class StoryScreen extends StatelessWidget {
const StoryScreen({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('Créer une Story'),
backgroundColor: Colors.blueAccent,
),
body: Padding(
padding: const EdgeInsets.all(16.0),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
const Text(
'Texte de la Story',
style: TextStyle(fontSize: 18, color: Colors.white),
),
const SizedBox(height: 8),
TextField(
maxLines: 5,
decoration: InputDecoration(
hintText: 'Rédigez votre Story',
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 la story
},
style: ElevatedButton.styleFrom(
backgroundColor: Colors.blueAccent,
padding: const EdgeInsets.all(16.0),
),
child: const Text('Publier la Story'),
),
],
),
),
backgroundColor: Colors.black,
);
}
}