Advertisement
joaopaulofcc

Untitled

Oct 21st, 2020
1,904
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 2.93 KB | None | 0 0
  1. import 'package:flutter/material.dart';
  2.  
  3. void main() {
  4.   runApp(MyApp());
  5. }
  6.  
  7. class MyApp extends StatelessWidget {
  8.   @override
  9.   Widget build(BuildContext context) {
  10.     return MaterialApp(
  11.       title: 'Flutter Demo',
  12.       theme: ThemeData(
  13.         primarySwatch: Colors.blue,
  14.         visualDensity: VisualDensity.adaptivePlatformDensity,
  15.       ),
  16.       home: MyHomePage(title: 'url_laucher'),
  17.     );
  18.   }
  19. }
  20.  
  21. class MyHomePage extends StatefulWidget {
  22.   MyHomePage({Key key, this.title}) : super(key: key);
  23.  
  24.   final String title;
  25.  
  26.   @override
  27.   _MyHomePageState createState() => _MyHomePageState();
  28. }
  29.  
  30. class _MyHomePageState extends State<MyHomePage> {
  31.   @override
  32.   Widget build(BuildContext context) {
  33.     return Scaffold(
  34.       appBar: AppBar(
  35.         title: Text(widget.title),
  36.       ),
  37.       body: Center(
  38.         child: Column(
  39.           mainAxisAlignment: MainAxisAlignment.center,
  40.           children: <Widget>[
  41.             new RaisedButton(
  42.               padding: const EdgeInsets.all(8.0),
  43.               textColor: Colors.white,
  44.               color: Colors.blue,
  45.               onPressed: () {},
  46.               child: new Text("Navegador"),
  47.             ),
  48.             new RaisedButton(
  49.               padding: const EdgeInsets.all(8.0),
  50.               textColor: Colors.white,
  51.               color: Colors.blue,
  52.               onPressed: () {},
  53.               child: new Text("Whatsapp"),
  54.             ),
  55.             new RaisedButton(
  56.               padding: const EdgeInsets.all(8.0),
  57.               textColor: Colors.white,
  58.               color: Colors.blue,
  59.               onPressed: () {},
  60.               child: new Text("Email"),
  61.             ),
  62.             new RaisedButton(
  63.               padding: const EdgeInsets.all(8.0),
  64.               textColor: Colors.white,
  65.               color: Colors.blue,
  66.               onPressed: () {},
  67.               child: new Text("Mapas"),
  68.             ),
  69.             new RaisedButton(
  70.               padding: const EdgeInsets.all(8.0),
  71.               textColor: Colors.white,
  72.               color: Colors.blue,
  73.               onPressed: () {},
  74.               child: new Text("Messenger"),
  75.             ),
  76.             new RaisedButton(
  77.               padding: const EdgeInsets.all(8.0),
  78.               textColor: Colors.white,
  79.               color: Colors.blue,
  80.               onPressed: () {},
  81.               child: new Text("Contatos"),
  82.             ),
  83.             new RaisedButton(
  84.               padding: const EdgeInsets.all(8.0),
  85.               textColor: Colors.white,
  86.               color: Colors.blue,
  87.               onPressed: () {},
  88.               child: new Text("SMS"),
  89.             ),
  90.             new RaisedButton(
  91.               padding: const EdgeInsets.all(8.0),
  92.               textColor: Colors.white,
  93.               color: Colors.blue,
  94.               onPressed: () {},
  95.               child: new Text("Telefone"),
  96.             ),
  97.           ],
  98.         ),
  99.       ),
  100.     );
  101.   }
  102. }
  103.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement