mirror of
https://bitbucket.org/FransoletThomas/tablet-app.git
synced 2025-12-06 00:21:19 +00:00
Small demo changes
This commit is contained in:
parent
16ac760b96
commit
79fd9b2a27
@ -50,7 +50,10 @@ class _MainViewWidget extends State<MainViewWidget> {
|
||||
elementToShow = WebViewWidget(url: 'Test');
|
||||
break;
|
||||
case 2 :
|
||||
elementToShow = Text('Hellow in');
|
||||
elementToShow = Padding(
|
||||
padding: const EdgeInsets.all(15.0),
|
||||
child: Text('Hellow in')
|
||||
);
|
||||
break;
|
||||
default:
|
||||
elementToShow = Text('Hellow default');
|
||||
@ -61,7 +64,7 @@ class _MainViewWidget extends State<MainViewWidget> {
|
||||
children: [
|
||||
Container(
|
||||
width: size.width,
|
||||
height: size.height * 0.10,
|
||||
height: size.height * 0.12,
|
||||
child: Row(
|
||||
children: [
|
||||
Padding(
|
||||
@ -81,13 +84,17 @@ class _MainViewWidget extends State<MainViewWidget> {
|
||||
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Align(
|
||||
Expanded(
|
||||
child: Align(
|
||||
alignment: Alignment.centerLeft,
|
||||
child: Text(sectionSelected.title, style: new TextStyle(fontSize: 50))
|
||||
child: Text(sectionSelected.title, style: new TextStyle(fontSize: 40))
|
||||
)
|
||||
),
|
||||
Align(
|
||||
Expanded(
|
||||
child: Align(
|
||||
alignment: Alignment.centerLeft,
|
||||
child: Text(sectionSelected.description, style: new TextStyle(fontSize: 35)))
|
||||
child: Text(sectionSelected.description, style: new TextStyle(fontSize: 30)))
|
||||
)
|
||||
],
|
||||
),
|
||||
)
|
||||
@ -98,7 +105,7 @@ class _MainViewWidget extends State<MainViewWidget> {
|
||||
padding: const EdgeInsets.only(left: 15.0, right: 15.0, top: 15.0),
|
||||
child: Container(
|
||||
width: size.width,
|
||||
height: size.height * 0.87,
|
||||
height: size.height * 0.85,
|
||||
decoration: BoxDecoration(
|
||||
color: kBackgroundLight,
|
||||
shape: BoxShape.rectangle,
|
||||
@ -113,7 +120,7 @@ class _MainViewWidget extends State<MainViewWidget> {
|
||||
],
|
||||
),
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.all(8.0),
|
||||
padding: const EdgeInsets.all(0.0),
|
||||
child: elementToShow),
|
||||
),
|
||||
)
|
||||
|
||||
@ -72,6 +72,14 @@ class _MapViewWidget extends State<MapViewWidget> {
|
||||
latitude: "36.7456",
|
||||
longitude: "3.0698"
|
||||
));
|
||||
markersList.add(MapMarker(
|
||||
id: 4,
|
||||
title: "Musée de la fraise",
|
||||
description: "Musée de la fraise wépion",
|
||||
image: "https://www.airfrance.co.uk/GB/common/common/img/tbaf/news/ALG/la-mosquee-ketchaoua-l-histoire-avec-un-grand-h/ALG-la-mosquee-ketchaoua-l-histoire-avec-un-grand-h-2_1-1024x512.jpg",
|
||||
latitude: "50.416639",
|
||||
longitude: "4.879169"
|
||||
));
|
||||
|
||||
markersList.forEach((element) {
|
||||
if (element.latitude != null && element.longitude != null) {
|
||||
@ -117,8 +125,8 @@ class _MapViewWidget extends State<MapViewWidget> {
|
||||
}
|
||||
|
||||
static final CameraPosition _kGooglePlex = CameraPosition(
|
||||
target: LatLng(50.4167344, 4.879165),
|
||||
zoom: 0.4746,
|
||||
target: LatLng(50.416639, 4.879169),
|
||||
zoom: 25.55,
|
||||
);
|
||||
|
||||
/*static final CameraPosition _kLake = CameraPosition(
|
||||
|
||||
@ -85,7 +85,10 @@ class _MarkerInfoWidget extends State<MarkerViewWidget> {
|
||||
mainAxisAlignment: MainAxisAlignment.spaceAround,
|
||||
children: [
|
||||
Text(mapContext.getSelectedMarker().title, style: TextStyle(fontSize: 15)),
|
||||
Text(mapContext.getSelectedMarker().description, style: TextStyle(fontSize: 15)),
|
||||
Padding(
|
||||
padding: const EdgeInsets.all(15.0),
|
||||
child: Text(mapContext.getSelectedMarker().description, style: TextStyle(fontSize: 15)),
|
||||
),
|
||||
Text(mapContext.getSelectedMarker().text, style: TextStyle(fontSize: 15)),
|
||||
Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user