Advertisement
joaopaulofcc

Untitled

Sep 9th, 2020
1,357
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 0.81 KB | None | 0 0
  1. import "package:flutter/material.dart";
  2.  
  3. void main() => runApp(MyApp());
  4.  
  5. class MyApp extends StatelessWidget {
  6.  
  7.   @override
  8.   Widget build(BuildContext context) {
  9.  
  10.     return MaterialApp(title : "Exemplo Drawer",
  11.       home : Scaffold(
  12.         appBar : AppBar(
  13.           title : Text("Exemplo - Drawer!")
  14.         ),
  15.         drawer : Drawer(
  16.           child : Column(
  17.             children : [
  18.               Text("Item 1"),
  19.               Divider(),
  20.               Text("Item 2"),
  21.               Divider(),
  22.               Text("Item 3")
  23.             ]
  24.           )
  25.         ),
  26.         body : Center(
  27.           child : Row(
  28.             children : [
  29.               Text("Filho1"),
  30.               Text("Filho2"),
  31.               Text("Filho3")
  32.             ]
  33.           )
  34.         )
  35.       )
  36.     );
  37.   }
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement