Advertisement
Guest User

imc

a guest
Nov 20th, 2019
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.52 KB | None | 0 0
  1. //11-11 colocando o debugPrint
  2.  
  3. import 'package:flutter/material.dart';
  4.  
  5. void main() {
  6. runApp(MaterialApp(
  7. title: "Contador de Pessoas",
  8. home: Home() ));
  9. }
  10.  
  11.  
  12. class Home extends StatefulWidget {
  13. @override
  14. _HomeState createState() => _HomeState();
  15. }
  16.  
  17. class _HomeState extends State<Home> {
  18. @override
  19. Widget build(BuildContext context) {
  20. return Scaffold(
  21. appBar: AppBar(
  22. title: Text("Calculadora de IMC"),
  23. centerTitle: true,
  24. backgroundColor: Colors.green,
  25. actions: <Widget>[
  26. IconButton(icon: Icon(Icons.refresh),
  27. onPressed: (){},)
  28. ],
  29. ),
  30. backgroundColor: Colors.white,
  31. body: Column(
  32. crossAxisAlignment: CrossAxisAlignment.stretch,
  33. children: <Widget>[
  34. Icon(Icons.person_outline, size: 120.0, color: Colors.green ),
  35. TextField(keyboardType: TextInputType.number,
  36. decoration: InputDecoration(
  37. labelText: "Peso (Kg):",
  38. labelStyle: TextStyle(color: Colors.green, fontSize: 25.0)
  39. ),
  40. textAlign: TextAlign.center,
  41. style: TextStyle(color: Colors.green, fontSize: 25.0),),
  42. TextField(keyboardType: TextInputType.number,
  43. decoration: InputDecoration(
  44. labelText: "Altura (cm):",
  45. labelStyle: TextStyle(color: Colors.green, fontSize: 25.0)
  46. ),
  47. textAlign: TextAlign.center,
  48. style: TextStyle(color: Colors.green, fontSize: 25.0),)
  49.  
  50. ],
  51. ),
  52. );
  53. }
  54. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement