Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
Amse_Mediatheque_Flutter
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Lila NICKLER
Amse_Mediatheque_Flutter
Commits
307f3f00
Commit
307f3f00
authored
Feb 11, 2021
by
Lila NICKLER
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up
parent
c7d8c515
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
40 deletions
+9
-40
Atelier-3.pdf
assets/images/Atelier-3.pdf
+0
-0
Widget3000.dart
lib/Widget3000.dart
+6
-31
main.dart
lib/main.dart
+3
-9
No files found.
assets/images/Atelier-3.pdf
deleted
100644 → 0
View file @
c7d8c515
File deleted
lib/Widget3000.dart
View file @
307f3f00
import
'dart:developer'
;
import
'dart:io'
;
import
'package:flutter/material.dart'
;
import
'package:google_fonts/google_fonts.dart'
;
import
'package:mediateque_tp1/Media.dart'
;
class
Widget3000
extends
StatefulWidget
{
class
Affichage_list
extends
StatefulWidget
{
final
List
<
MediaItem
>
list
;
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
_
Widget3000State
createState
()
=>
_Widget3000
State
();
_
Affichage_listState
createState
()
=>
_Affichage_list
State
();
}
class
_
Widget3000State
extends
State
<
Widget3000
>
{
_
Widget3000
State
():
super
();
class
_
Affichage_listState
extends
State
<
Affichage_list
>
{
_
Affichage_list
State
():
super
();
ListView
mediaDisplay
(
MediaItem
item
)
{
const
TextStyle
titleStyle
=
TextStyle
(
fontSize:
30
,
fontWeight:
FontWeight
.
bold
);
...
...
@@ -95,26 +92,4 @@ class _Widget3000State extends State<Widget3000> {
]
);
}
}
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'
),
),
),
);
}
}
}
\ No newline at end of file
lib/main.dart
View file @
307f3f00
...
...
@@ -14,7 +14,6 @@ void main() {
}
class
MyApp
extends
StatelessWidget
{
// This widget is the root of your application.
@override
Widget
build
(
BuildContext
context
)
{
return
MaterialApp
(
...
...
@@ -22,10 +21,6 @@ class MyApp extends StatelessWidget {
theme:
ThemeData
(
primaryColor:
Colors
.
deepPurple
[
200
],
accentColor:
Colors
.
orange
[
50
],
//primarySwatch: Colors.deepOrange.shade50,
visualDensity:
VisualDensity
.
adaptivePlatformDensity
,
),
home:
MyHomePage
(
title:
'Mediathèque'
,),
...
...
@@ -47,9 +42,9 @@ class _MyHomePageState extends State<MyHomePage> {
static
DataBase
db
=
new
DataBase
();
static
Widget3000
affichageSeries
=
new
Widget3000
(
list:
db
.
getlistSeries
(),
list_fav:
db
.
getlistSaved
());
static
Widget3000
affichageGames
=
new
Widget3000
(
list:
db
.
getlistGames
(),
list_fav:
db
.
getlistSaved
());
static
Widget3000
affichageFav
=
new
Widget3000
(
list:
db
.
getlistSaved
(),
list_fav:
db
.
getlistSaved
());
static
Affichage_list
affichageSeries
=
new
Affichage_list
(
list:
db
.
getlistSeries
(),
list_fav:
db
.
getlistSaved
());
static
Affichage_list
affichageGames
=
new
Affichage_list
(
list:
db
.
getlistGames
(),
list_fav:
db
.
getlistSaved
());
static
Affichage_list
affichageFav
=
new
Affichage_list
(
list:
db
.
getlistSaved
(),
list_fav:
db
.
getlistSaved
());
static
List
<
Widget
>
_widgetOptions
=
<
Widget
>[
...
...
@@ -105,7 +100,6 @@ class _MyHomePageState extends State<MyHomePage> {
currentIndex:
_selectedIndex
,
selectedItemColor:
Colors
.
white
,
onTap:
_onItemTapped
,),
// This trailing comma makes auto-formatting nicer for build methods.
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment