forked from anncode1/Curso-de-Flutter-Avanzado-en-Platzi
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Anahi Salgado
committed
Dec 6, 2018
1 parent
4c4bb6c
commit e9bdef3
Showing
11 changed files
with
74 additions
and
1 deletion.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
platzi_trips_app/android/app/src/main/kotlin/com/anncode/platzitripsapp/MainActivity.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,17 @@ | ||
package com.anncode.platzitripsapp | ||
|
||
import android.annotation.TargetApi | ||
import android.os.Build | ||
import android.os.Bundle | ||
|
||
import io.flutter.app.FlutterActivity | ||
import io.flutter.plugins.GeneratedPluginRegistrant | ||
|
||
class MainActivity: FlutterActivity() { | ||
@TargetApi(Build.VERSION_CODES.LOLLIPOP) | ||
override fun onCreate(savedInstanceState: Bundle?) { | ||
super.onCreate(savedInstanceState) | ||
GeneratedPluginRegistrant.registerWith(this) | ||
this.getWindow().setStatusBarColor(android.graphics.Color.TRANSPARENT); | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import 'package:flutter/material.dart'; | ||
|
||
class CardImage extends StatelessWidget { | ||
|
||
String pathImage = "assets/img/beach.jpeg"; | ||
|
||
CardImage(this.pathImage); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
// TODO: implement build | ||
|
||
final card = Container( | ||
height: 350.0, | ||
width: 250.0, | ||
margin: EdgeInsets.only( | ||
top: 80.0, | ||
left: 20.0 | ||
|
||
), | ||
|
||
decoration: BoxDecoration( | ||
image: DecorationImage( | ||
fit: BoxFit.cover, | ||
image: AssetImage(pathImage) | ||
), | ||
borderRadius: BorderRadius.all(Radius.circular(10.0)), | ||
shape: BoxShape.rectangle, | ||
boxShadow: <BoxShadow>[ | ||
BoxShadow ( | ||
color: Colors.black38, | ||
blurRadius: 15.0, | ||
offset: Offset(0.0, 7.0) | ||
) | ||
] | ||
|
||
), | ||
); | ||
|
||
return card; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters