Commit 307f3f00 authored by Lila NICKLER's avatar Lila NICKLER

Clean up

parent c7d8c515
import 'dart:developer';
import 'dart:io';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart'; import 'package:google_fonts/google_fonts.dart';
import 'package:mediateque_tp1/Media.dart'; import 'package:mediateque_tp1/Media.dart';
class Widget3000 extends StatefulWidget{ class Affichage_list extends StatefulWidget{
final List <MediaItem> list; final List <MediaItem> list;
final List <MediaItem> list_fav; final List <MediaItem> list_fav;
Widget3000({Key key, @required this.list, this.list_fav}):super (key:key); Affichage_list({Key key, @required this.list, this.list_fav}):super (key:key);
@override @override
_Widget3000State createState() => _Widget3000State(); _Affichage_listState createState() => _Affichage_listState();
} }
class _Widget3000State extends State<Widget3000> { class _Affichage_listState extends State<Affichage_list> {
_Widget3000State(): super(); _Affichage_listState(): super();
ListView mediaDisplay(MediaItem item) { ListView mediaDisplay(MediaItem item) {
const TextStyle titleStyle = TextStyle(fontSize: 30, fontWeight: FontWeight.bold); const TextStyle titleStyle = TextStyle(fontSize: 30, fontWeight: FontWeight.bold);
...@@ -95,26 +92,4 @@ class _Widget3000State extends State<Widget3000> { ...@@ -95,26 +92,4 @@ class _Widget3000State extends State<Widget3000> {
] ]
); );
} }
} }
\ No newline at end of file
class Description extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text("Fiche d'information"),
),
body: Center(
child: ElevatedButton(
onPressed: () {
Navigator.pop(context);
},
child: Text('Retour à la liste'),
),
),
);
}
}
...@@ -14,7 +14,6 @@ void main() { ...@@ -14,7 +14,6 @@ void main() {
} }
class MyApp extends StatelessWidget { class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return MaterialApp( return MaterialApp(
...@@ -22,10 +21,6 @@ class MyApp extends StatelessWidget { ...@@ -22,10 +21,6 @@ class MyApp extends StatelessWidget {
theme: ThemeData( theme: ThemeData(
primaryColor: Colors.deepPurple[200], primaryColor: Colors.deepPurple[200],
accentColor: Colors.orange[50],
//primarySwatch: Colors.deepOrange.shade50,
visualDensity: VisualDensity.adaptivePlatformDensity, visualDensity: VisualDensity.adaptivePlatformDensity,
), ),
home: MyHomePage(title: 'Mediathèque',), home: MyHomePage(title: 'Mediathèque',),
...@@ -47,9 +42,9 @@ class _MyHomePageState extends State<MyHomePage> { ...@@ -47,9 +42,9 @@ class _MyHomePageState extends State<MyHomePage> {
static DataBase db = new DataBase(); static DataBase db = new DataBase();
static Widget3000 affichageSeries =new Widget3000(list: db.getlistSeries(),list_fav: db.getlistSaved()); static Affichage_list affichageSeries = new Affichage_list(list: db.getlistSeries(),list_fav: db.getlistSaved());
static Widget3000 affichageGames =new Widget3000(list: db.getlistGames(),list_fav: db.getlistSaved()); static Affichage_list affichageGames = new Affichage_list(list: db.getlistGames(),list_fav: db.getlistSaved());
static Widget3000 affichageFav =new Widget3000(list: db.getlistSaved(),list_fav: db.getlistSaved()); static Affichage_list affichageFav = new Affichage_list(list: db.getlistSaved(),list_fav: db.getlistSaved());
static List<Widget> _widgetOptions = <Widget>[ static List<Widget> _widgetOptions = <Widget>[
...@@ -105,7 +100,6 @@ class _MyHomePageState extends State<MyHomePage> { ...@@ -105,7 +100,6 @@ class _MyHomePageState extends State<MyHomePage> {
currentIndex: _selectedIndex, currentIndex: _selectedIndex,
selectedItemColor: Colors.white, selectedItemColor: Colors.white,
onTap: _onItemTapped,), onTap: _onItemTapped,),
// This trailing comma makes auto-formatting nicer for build methods.
); );
} }
......
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