joaopaulofcc

Untitled

Sep 23rd, 2020
515
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import 'package:flutter/material.dart';
  2.  
  3. void main() => runApp(MyApp());
  4.  
  5. class MyApp extends StatelessWidget {
  6.   final TextEditingController _controladorNome = TextEditingController();
  7.   final TextEditingController _controladorQuantidade = TextEditingController();
  8.   final TextEditingController _controladorValor = TextEditingController();
  9.  
  10.   @override
  11.   Widget build(BuildContext context) {
  12.     return MaterialApp(
  13.       home: Scaffold(
  14.         appBar: AppBar(
  15.           title: Text('Cadastrando produto'),
  16.         ),
  17.         body: Column(
  18.           children: <Widget>[
  19.             TextField(
  20.               controller: _controladorNome,
  21.             ),
  22.             TextField(
  23.               controller: _controladorQuantidade,
  24.             ),
  25.             TextField(
  26.               controller: _controladorValor,
  27.             ),
  28.             RaisedButton(
  29.               child: Text('Cadastrar'),
  30.               onPressed: () {},
  31.             )
  32.           ],
  33.         ),
  34.       ),
  35.     );
  36.   }
  37. }
RAW Paste Data