Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.13 KB | None | 0 0
  1. class lista_negocio_detalle extends StatefulWidget {
  2. final Negocio value;
  3.  
  4. lista_negocio_detalle({Key key, this.value}) : super(key: key);
  5.  
  6. @override
  7. _lista_negocio_detalle createState() => _lista_negocio_detalle();
  8. }
  9.  
  10. class _lista_negocio_detalle extends State<lista_negocio_detalle> {
  11. GoogleMapController myController;
  12.  
  13. @override
  14. Widget build(BuildContext context) {
  15. return new Scaffold(
  16. body: Stack(children: <Widget>[
  17. gradiente_fondo(widget.value.title),
  18. imagen_detalle(widget.value.imageUrl, 123),
  19. ListView(
  20. children: <Widget>[
  21. descripcion_detalle(widget.value.description),
  22. map(widget.value.x, widget.value.y),
  23. ],
  24. ),
  25.  
  26. ]));
  27. }
  28. }
  29.  
  30. class gradiente_fondo extends StatelessWidget{
  31. @override
  32.  
  33. String titulo;
  34.  
  35. gradiente_fondo(this.titulo);
  36.  
  37. Widget build(BuildContext context) {
  38. // TODO: implement build
  39.  
  40. final gradiente = Container(
  41. height: 250.0,
  42. decoration: BoxDecoration(
  43. gradient: LinearGradient(
  44. colors: [
  45. Color(0xFF3454D1),
  46. Color(0xFF3A5DEA),
  47. ],
  48. begin: FractionalOffset(0.2, 0.0),
  49. end: FractionalOffset(1.0, 0.6),
  50. stops: [0.0,0.6],
  51. tileMode: TileMode.clamp
  52.  
  53.  
  54. )
  55. ),
  56.  
  57. child: Text( //TITULO GRADIENTE
  58. titulo,
  59. style: TextStyle(
  60. color: Colors.white,
  61. fontSize:30.0,
  62. fontFamily: "Lato",
  63. fontWeight: FontWeight.bold,
  64. ),
  65. ),
  66.  
  67. alignment: Alignment(-0.9, -0.6),
  68.  
  69.  
  70. );
  71.  
  72. return gradiente;
  73. }
  74.  
  75. class imagen_detalle extends StatelessWidget {
  76. @override
  77. String String_imagen;
  78. int celular;
  79.  
  80. imagen_detalle(this.String_imagen, this.celular);
  81.  
  82. Widget build(BuildContext context) {
  83. // TODO: implement build
  84.  
  85. final imagen = Container(
  86. child: Image.network(String_imagen),
  87. height: 220.0,
  88. width: 330.0,
  89. margin: EdgeInsets.only(
  90. top: 80.0,
  91. left: 20.0,
  92. ),
  93. decoration: BoxDecoration(
  94.  
  95. borderRadius: BorderRadius.all(Radius.circular(10.0)),
  96. shape: BoxShape.rectangle,
  97.  
  98. boxShadow: <BoxShadow>[
  99. //sombra
  100. BoxShadow(
  101. color: Colors.black38,
  102. blurRadius: 15.0,
  103. offset: Offset(0.0, 7.0),
  104. )
  105. ]
  106.  
  107. ),
  108. );
  109.  
  110. return Stack(alignment: Alignment.bottomCenter, children: <Widget>[
  111. imagen,
  112. botones_detalle(celular),
  113.  
  114. ]);
  115. }
  116. }
  117. class botones_detalle extends StatefulWidget {
  118. @override
  119. int celular;
  120. botones_detalle(this.celular);
  121. @override
  122. _botones_detalle createState() => _botones_detalle();
  123.  
  124. }
  125.  
  126. class _botones_detalle extends State<botones_detalle> {
  127. Widget build(BuildContext context) {
  128. // TODO: implement build
  129.  
  130.  
  131. final boton = Container(
  132. height: 5.0,
  133. width: 5.0,
  134. color: Colors.blue,
  135. margin: EdgeInsets.only(
  136. right: 180.0,
  137. ),
  138. decoration: BoxDecoration(
  139. borderRadius: BorderRadius.circular(100.0),
  140. ),
  141. child: InkWell(
  142.  
  143.  
  144. ),
  145.  
  146. );
  147. return boton;
  148.  
  149. }
  150. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement