Advertisement
Guest User

Untitled

a guest
Mar 30th, 2020
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.88 KB | None | 0 0
  1. class SecondPage extends StatelessWidget {
  2. @override
  3. Widget build(BuildContext context) {
  4. return Scaffold(
  5. backgroundColor: Color(0xFF2d3447),
  6. body: Column(
  7. children: <Widget>[
  8. SizedBox(height: 5),
  9. Row(
  10. children: <Widget>[
  11. Expanded(
  12. child: Container(
  13. height: 100,
  14. width: 200,
  15. child: Center(
  16. child: Column(
  17. mainAxisAlignment: MainAxisAlignment.center,
  18. children: <Widget>[
  19. Row(
  20. mainAxisAlignment: MainAxisAlignment.start,
  21. children: <Widget>[
  22. RaisedButton(
  23. child: Text('Freccia'),
  24. onPressed: () {
  25. Navigator.of(context).push(
  26. MaterialPageRoute(
  27. builder: (context) => FirstPage(),
  28. ),
  29. );
  30. },
  31. ),
  32. Spacer(),
  33. ],
  34. ),
  35. TextField(
  36. decoration: InputDecoration(
  37. border: InputBorder.none,
  38. hintText: 'Abitudine',
  39. ),
  40. ),
  41. ],
  42. ),
  43. ),
  44. decoration: BoxDecoration(
  45. borderRadius: BorderRadius.circular(5),
  46. color: Colors.white,
  47. ),
  48. ),
  49. ),
  50. ],
  51. ),
  52. ],
  53. ),
  54. );
  55. }
  56. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement