Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class lista_negocio_detalle extends StatefulWidget {
- final Negocio value;
- lista_negocio_detalle({Key key, this.value}) : super(key: key);
- @override
- _lista_negocio_detalle createState() => _lista_negocio_detalle();
- }
- class _lista_negocio_detalle extends State<lista_negocio_detalle> {
- GoogleMapController myController;
- @override
- Widget build(BuildContext context) {
- return new Scaffold(
- body: Stack(children: <Widget>[
- gradiente_fondo(widget.value.title),
- imagen_detalle(widget.value.imageUrl, 123),
- ListView(
- children: <Widget>[
- descripcion_detalle(widget.value.description),
- map(widget.value.x, widget.value.y),
- ],
- ),
- ]));
- }
- }
- class gradiente_fondo extends StatelessWidget{
- @override
- String titulo;
- gradiente_fondo(this.titulo);
- Widget build(BuildContext context) {
- // TODO: implement build
- final gradiente = Container(
- height: 250.0,
- decoration: BoxDecoration(
- gradient: LinearGradient(
- colors: [
- Color(0xFF3454D1),
- Color(0xFF3A5DEA),
- ],
- begin: FractionalOffset(0.2, 0.0),
- end: FractionalOffset(1.0, 0.6),
- stops: [0.0,0.6],
- tileMode: TileMode.clamp
- )
- ),
- child: Text( //TITULO GRADIENTE
- titulo,
- style: TextStyle(
- color: Colors.white,
- fontSize:30.0,
- fontFamily: "Lato",
- fontWeight: FontWeight.bold,
- ),
- ),
- alignment: Alignment(-0.9, -0.6),
- );
- return gradiente;
- }
- class imagen_detalle extends StatelessWidget {
- @override
- String String_imagen;
- int celular;
- imagen_detalle(this.String_imagen, this.celular);
- Widget build(BuildContext context) {
- // TODO: implement build
- final imagen = Container(
- child: Image.network(String_imagen),
- height: 220.0,
- width: 330.0,
- margin: EdgeInsets.only(
- top: 80.0,
- left: 20.0,
- ),
- decoration: BoxDecoration(
- borderRadius: BorderRadius.all(Radius.circular(10.0)),
- shape: BoxShape.rectangle,
- boxShadow: <BoxShadow>[
- //sombra
- BoxShadow(
- color: Colors.black38,
- blurRadius: 15.0,
- offset: Offset(0.0, 7.0),
- )
- ]
- ),
- );
- return Stack(alignment: Alignment.bottomCenter, children: <Widget>[
- imagen,
- botones_detalle(celular),
- ]);
- }
- }
- class botones_detalle extends StatefulWidget {
- @override
- int celular;
- botones_detalle(this.celular);
- @override
- _botones_detalle createState() => _botones_detalle();
- }
- class _botones_detalle extends State<botones_detalle> {
- Widget build(BuildContext context) {
- // TODO: implement build
- final boton = Container(
- height: 5.0,
- width: 5.0,
- color: Colors.blue,
- margin: EdgeInsets.only(
- right: 180.0,
- ),
- decoration: BoxDecoration(
- borderRadius: BorderRadius.circular(100.0),
- ),
- child: InkWell(
- ),
- );
- return boton;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement