Commit 270f190d authored by Lila NICKLER's avatar Lila NICKLER

Ajout d'une partie information

parent 2146a49b
Pipeline #1070 failed with stages
......@@ -19,12 +19,8 @@ class MyApp extends StatelessWidget {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
primaryColor: Colors.deepPurple[200],
accentColor: Colors.deepPurple[100],
visualDensity: VisualDensity.adaptivePlatformDensity,
),
home: MyHomePage(title: 'Mediathèque',),
......@@ -65,12 +61,47 @@ class _MyHomePageState extends State<MyHomePage> {
});
}
void info (){
Navigator.of(context).push(
MaterialPageRoute<void>(
builder: (BuildContext context){
return Scaffold(
appBar: AppBar(
title: Text("Information", style: GoogleFonts.montserrat(textStyle: TextStyle(fontSize: 20,color: Colors.white))),
),
body: Container (
alignment: Alignment.bottomRight,
child: ListView(
children: [
Text(""),
Text(""),
Text ("Application Médiathèque", textAlign: TextAlign.center, style: GoogleFonts.montserrat(textStyle: TextStyle(fontSize: 30,color: Colors.deepPurple[400]))),
Text(""),
Text(""),
Text ("Médiathèque est une application réalisé en Dart avec Flutter. Elle permet l'accès à des information grâce à 5 onglets: Home, Séries, Films, Jeux Vidéo et Favoris. Il est possible d'ajouter des médias à une liste de favoris consultable dans l'onglet Favoris", textAlign: TextAlign.justify, style: GoogleFonts.montserrat(textStyle: TextStyle(fontSize: 20,color: Colors.deepPurple[200]))),
Text(""),
Text(""),
Text(""),
Text("Réalisé par Lila NICKLER dans le cadre de l'UV AMSE en février 2021",textAlign: TextAlign.justify, style: GoogleFonts.montserrat(textStyle: TextStyle(fontSize: 20,color: Colors.deepPurple[200]))),
Image.asset("assets/enjoy.png"),
],
),
)
);
}
)
);
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text(widget.title, style: GoogleFonts.montserrat(color: Colors.white)),
actions: [
IconButton(icon: Icon(Icons.info_outline, color: Colors.white), onPressed: info)
],
),
body: Center(child: _widgetOptions.elementAt(_selectedIndex),
),
......
......@@ -40,6 +40,7 @@ flutter:
# To add assets to your application, add an assets section, like this:
assets:
- assets/images/
- assets/
# An image asset can refer to one or more resolution-specific "variants", see
# https://flutter.dev/assets-and-images/#resolution-aware.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment