Advertisement
Squall32

Pagina 1

Oct 26th, 2019
20
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 0.83 KB | None | 0 0
  1. import 'package:flutter/material.dart';
  2.  
  3. class Menu extends StatelessWidget{
  4.   @override
  5.  
  6.   Widget build(BuildContext context) {
  7.  
  8.     return Scaffold(
  9.  
  10.       appBar: new AppBar(title: Text('Menu'),),
  11.       body: new Column(children: <Widget>[
  12.  
  13.           new Text('Estamos en el menu principal'),
  14.  
  15.         ],
  16.       ),
  17.  
  18.     );
  19.  
  20.   }
  21.  
  22. }
  23.  
  24. class MenuEmpleado extends StatelessWidget{
  25.  
  26.   @override
  27.   Widget build(BuildContext context) {
  28.  
  29.     return Scaffold(
  30.  
  31.       resizeToAvoidBottomPadding: false,
  32.       body: Form(
  33.  
  34.         child: Container(
  35.  
  36.           decoration: new BoxDecoration(
  37.  
  38.             image: new DecorationImage(
  39.  
  40.               image: new AssetImage("assets/images/Fondo1.jpg"),
  41.               fit: BoxFit.cover
  42.  
  43.             ),
  44.            
  45.           ),
  46.  
  47.         ),
  48.  
  49.       ),
  50.  
  51.     );
  52.  
  53.   }
  54.  
  55. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement