Advertisement
vitareinforce

button floating

May 11th, 2020
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.80 KB | None | 0 0
  1. floatingActionButton: Stack(
  2. children: <Widget>[
  3. Padding(padding: EdgeInsets.only(left:0),
  4. child: Align(
  5. alignment: Alignment.bottomRight,
  6. child: FloatingActionButton(
  7. onPressed: () {
  8. model.goAnotherView(AbsenViewRoute);
  9. },
  10. backgroundColor: bluePrimary,
  11. child: Icon(
  12. Icons.add,
  13. color: white,
  14. )
  15. ),
  16. ),
  17. ),
  18. Align(
  19. alignment: Alignment.bottomLeft,
  20. child: FloatingActionButton(
  21. onPressed: () {
  22. //model.goAnotherView(AbsenViewRoute);
  23. },
  24. backgroundColor: Colors.red,
  25. child: Icon(
  26. Icons.add_box,
  27. color: white,
  28. )
  29. ),
  30. ),
  31. Align(
  32. alignment: Alignment.bottomLeft,
  33. child: FloatingActionButton(
  34. onPressed: () {
  35. //model.goAnotherView(AbsenViewRoute);
  36. },
  37. backgroundColor: Colors.green,
  38. child: Icon(
  39. Icons.add_box,
  40. color: white,
  41. )
  42. ),
  43. ),
  44. Align(
  45. alignment: Alignment.bottomLeft,
  46. child: FloatingActionButton(
  47. onPressed: () {
  48. //model.goAnotherView(AbsenViewRoute);
  49. },
  50. backgroundColor: Colors.yellow,
  51. child: Icon(
  52. Icons.add_box,
  53. color: white,
  54. )
  55. ),
  56. ),
  57. ]
  58. ),
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement