0% found this document useful (0 votes)
6 views5 pages

Flutter App with Dashboard and Logout

mobile
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views5 pages

Flutter App with Dashboard and Logout

mobile
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

import 'package:flutter/material.

dart';

void main() {
runApp(MyApp());
//runApp(const MyApp());
}

class MyApp extends StatelessWidget {


final tab = List<int>.generate(
50,
(i) => i,
); //declarer une variable,une liste entier
//const MyApp( {[Link]});
@override
Widget build(BuildContext context) {
return (MaterialApp(
home: Scaffold(
appBar: AppBar(
title: Text('Ma première application'),
backgroundColor: [Link],
),
body:
const Stack(
fit: [Link],
children: [
Banner(
location: [Link],
message: "Top Start",),
Banner(
location: [Link],
message: "Top End",),
Banner(
location: [Link],
message: "Bottom Start",),
Banner(
location: [Link],
message: "Bottom End",),
],
),

/* Center(
child: IntrinsicWidth(
child: Column(
children: [
ElevatedButton(onPressed: () {}, child: const Text("Button 1")),
ElevatedButton(
onPressed: () {},
child: const Text("Button large2"),
),
ElevatedButton(
onPressed: () {},
child: const Text("Button large large3"),
),
],
),
),
),*/

/*Container(
height: 300, width: 300,
padding: const [Link](20),
margin: const [Link](left: 30,top: 50,bottom:20),
alignment: [Link],
transform: [Link](0.1),
decoration: BoxDecoration(
color: const Color(0xAED7F0C0),
borderRadius: [Link](30.0),
boxShadow: const[
BoxShadow(
color: [Link],
offset: Offset(10, -10),
blurRadius: 5
),
]
),

/* height: [Link],
width: [Link],
color: [Link],*/
child: Text("Bienvenue au campus IST-GOUNGHIN",style:
[Link](context).[Link]),
)*/
/*[Link](
itemCount: [Link],
itemBuilder: (context,index){
return Text("${tab[index]}");
}
)*/

/*Row(
children: <Widget>[
Icon([Link], size:60, color: [Link]),
Icon([Link], size:60, color: [Link]),
Icon([Link], size:60, color: [Link]),],
),*/
),
));
}
}

26/06/25 absente….
appBar: AppBar(

backgroundColor: [Link],
title: Text('Tableau de bord', style: TextStyle(fontSize: 16, fontWeight:
[Link], color: [Link]),),
actions: [
IconButton(
icon: Icon([Link]),
onPressed: () {
// Handle logout (déconnexion)
showDialog(
context: context,
builder: (_) => AlertDialog(
title: Text('Déconnexion'),
content: Text('Voulez-vous vraiment vous déconnecter ?'),
actions: [
TextButton(
onPressed: () => [Link](context),
child: Text('Annuler'),
),
TextButton(
onPressed: () {
// Perform logout logic here
[Link](context);
},
child: Text('Déconnexion'),
),
],
),
);
},
),
],
),
drawer: Drawer(
child: ListView(
children: <Widget>[
UserAccountsDrawerHeader(

accountName: Text("Moctar COMPAORE"),


accountEmail: Text("[Link]@[Link]"),
currentAccountPicture: CircleAvatar(
backgroundImage: AssetImage("assets/[Link]"),
),
),
ListTile(
leading: Icon([Link]),
title: Text('Dashboard'),
onTap: () {
// Navigate to dashboard
},
),
ListTile(
leading: Icon([Link]),
title: Text('Profil'),
onTap: () {
// Navigate to profile
},
),
ListTile(
leading: Icon([Link]),
title: Text('Déconnexion'),
onTap: () {
// Same logout logic
},
),
],
),
),
backgroundColor: [Link][100],
body: Center(child: Text("Hello world !"),)

You might also like