Skip to content
Snippets Groups Projects
Commit 8f7101e7 authored by Akara's avatar Akara
Browse files

post new

parent 383ab573
Branches
No related tags found
No related merge requests found
...@@ -24,7 +24,7 @@ class AppTheme{ ...@@ -24,7 +24,7 @@ class AppTheme{
enabledBorder: _border(), enabledBorder: _border(),
focusedBorder: _border(AppColor.red) focusedBorder: _border(AppColor.red)
), ),
textTheme: TextTheme( textTheme: const TextTheme(
titleMedium: TextStyle(color: AppColor.black) titleMedium: TextStyle(color: AppColor.black)
), ),
appBarTheme: const AppBarTheme( appBarTheme: const AppBarTheme(
......
...@@ -41,7 +41,7 @@ import 'package:flutter_svg/svg.dart'; ...@@ -41,7 +41,7 @@ import 'package:flutter_svg/svg.dart';
); );
}, },
), ),
ListTile( /*ListTile(
leading: Icon(Icons.settings, color: Colors.white), leading: Icon(Icons.settings, color: Colors.white),
title: const Text( title: const Text(
"Paramètres", "Paramètres",
...@@ -52,7 +52,7 @@ import 'package:flutter_svg/svg.dart'; ...@@ -52,7 +52,7 @@ import 'package:flutter_svg/svg.dart';
MaterialPageRoute(builder: (context) => Parameters()) //à changer MaterialPageRoute(builder: (context) => Parameters()) //à changer
); );
}, },
), ),*/
ListTile( ListTile(
leading: Icon(Icons.search, color: Colors.white), leading: Icon(Icons.search, color: Colors.white),
title: const Text( title: const Text(
......
...@@ -218,7 +218,7 @@ class Post extends StatelessWidget { ...@@ -218,7 +218,7 @@ class Post extends StatelessWidget {
} }
return Padding( return Padding(
padding: const EdgeInsets.all(20.0), padding: const EdgeInsets.all(10.0),
child: ClipRRect( child: ClipRRect(
child: Container( child: Container(
decoration: BoxDecoration( decoration: BoxDecoration(
...@@ -242,22 +242,24 @@ class Post extends StatelessWidget { ...@@ -242,22 +242,24 @@ class Post extends StatelessWidget {
mainAxisAlignment: MainAxisAlignment.start, mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Padding( Container(
padding: const EdgeInsets.only(left: 5.0, top: 5), padding: EdgeInsets.all(8),
decoration: BoxDecoration(color: AppColor.lightBlue, borderRadius: BorderRadius.circular(8)),
width: 1000,
child: Text( child: Text(
postData?['titre'] ?? '', postData?['titre'] ?? '',
style: TextStyle(fontSize: 22, fontWeight: FontWeight.bold, color: AppColor.white), style: TextStyle(fontSize: 22, fontWeight: FontWeight.bold,),
), ),
), ),
Padding( Padding(
padding: const EdgeInsets.only(left: 3.0), padding: const EdgeInsets.only(left: 3.0, top: 3),
child: Text( child: Text(
postData?['auteur'] ?? '', postData?['auteur'] ?? '',
style: TextStyle(fontSize: 13, color: AppColor.lightBlue), style: TextStyle(fontSize: 13, color: AppColor.deepBlue),
), ),
), ),
Chip( Chip(
label: Text(clubName, style: TextStyle(color: AppColor.white)), label: Text(clubName, style: TextStyle(color: AppColor.white),),
backgroundColor: AppColor.red, backgroundColor: AppColor.red,
side: BorderSide.none, side: BorderSide.none,
), ),
...@@ -278,8 +280,12 @@ class Post extends StatelessWidget { ...@@ -278,8 +280,12 @@ class Post extends StatelessWidget {
), ),
Padding( Padding(
padding: const EdgeInsets.all(3.0), padding: const EdgeInsets.all(3.0),
child: Text(dateFormat.format(postData?['date'].toDate()).toString() ?? '', style: TextStyle(color: Colors.white.withOpacity(0.6))), child: Text(dateFormat.format(postData?['date'].toDate()).toString() ?? '', style: TextStyle(color: Colors.black.withOpacity(0.6))),
) ),
const Divider(
color: AppColor.deepBlue,
thickness: 3,
) // marge à droite de la ligne)
], ],
); );
}, },
......
...@@ -114,7 +114,7 @@ class _ListePostsStateState extends State<_ListePostsState> { ...@@ -114,7 +114,7 @@ class _ListePostsStateState extends State<_ListePostsState> {
key: Key(postId), key: Key(postId),
postData: postData, postData: postData,
postid: postId, postid: postId,
color: AppColor.turquoiseBlue, color: Colors.transparent,
); );
}, },
childCount: postsData.length, childCount: postsData.length,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment