Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
Amse_Tp2
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_Tp2
Commits
3d5b8b6c
Commit
3d5b8b6c
authored
Feb 15, 2021
by
Lila NICKLER
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Exercice 1
parent
898ed3ca
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
19 deletions
+25
-19
gradle.properties
tp2_jeu_de_taquin/android/gradle.properties
+1
-0
Exo.dart
tp2_jeu_de_taquin/lib/Exo.dart
+17
-0
main.dart
tp2_jeu_de_taquin/lib/main.dart
+7
-19
No files found.
tp2_jeu_de_taquin/android/gradle.properties
View file @
3d5b8b6c
org.gradle.jvmargs
=
-Xmx1536M
android.useAndroidX
=
true
android.enableJetifier
=
true
android.enableR8
=
true
tp2_jeu_de_taquin/lib/Exo.dart
0 → 100644
View file @
3d5b8b6c
import
'package:flutter/cupertino.dart'
;
import
'package:flutter/material.dart'
;
class
Exercice1
extends
StatelessWidget
{
Widget
build
(
BuildContext
context
)
{
var
mediaQueryData
=
MediaQuery
.
of
(
context
);
return
Container
(
height:
mediaQueryData
.
size
.
height
-
200
,
child:
Image
.
network
(
"https://picsum.photos/512/1024"
),
);
}
}
tp2_jeu_de_taquin/lib/main.dart
View file @
3d5b8b6c
import
'package:flutter/material.dart'
;
import
'Exo.dart'
;
void
main
(
)
{
runApp
(
MyApp
());
}
...
...
@@ -29,14 +31,9 @@ class MyHomePage extends StatefulWidget {
}
class
_MyHomePageState
extends
State
<
MyHomePage
>
{
int
_counter
=
0
;
void
_incrementCounter
()
{
setState
(()
{
_counter
++;
});
}
@override
static
Exercice1
exo1
=
new
Exercice1
();
@override
Widget
build
(
BuildContext
context
)
{
return
Scaffold
(
...
...
@@ -48,21 +45,12 @@ class _MyHomePageState extends State<MyHomePage> {
child:
Column
(
mainAxisAlignment:
MainAxisAlignment
.
center
,
children:
<
Widget
>[
Text
(
'You have pushed the button this many times:'
,
),
Text
(
'
$_counter
'
,
style:
Theme
.
of
(
context
).
textTheme
.
headline4
,
),
exo1
,
],
),
),
floatingActionButton:
FloatingActionButton
(
onPressed:
_incrementCounter
,
tooltip:
'Increment'
,
child:
Icon
(
Icons
.
add
),
),
// This trailing comma makes auto-formatting nicer for build methods.
// 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