新建项目-6.png

    水一波 ~ (后续补上)

    1. RaisedButton(
    2. child: Text('RaisedButton'),
    3. onPressed: () {
    4. print("RaisedButton");
    5. },
    6. ),
    7. FlatButton(
    8. child: Text('FlatButton'),
    9. onPressed: () {
    10. print("FlatButton");
    11. },
    12. ),
    13. OutlineButton(
    14. child: Text("OutlineButton"),
    15. onPressed: () {
    16. print("OutlineButton");
    17. },
    18. ),
    19. IconButton(
    20. icon: Icon(
    21. Icons.thumb_up
    22. ),
    23. onPressed: () {
    24. print("IconButton");
    25. },
    26. ),
    27. OutlineButton.icon(
    28. onPressed: () {
    29. print("OutlineButton.icon");
    30. },
    31. icon: Icon(Icons.thumb_down),
    32. label: Text('OutlineButton.icon')
    33. ),
    34. RaisedButton.icon(
    35. onPressed: () {},
    36. icon: Icon(Icons.add),
    37. label: Text(
    38. 'RaisedButton.icon'
    39. )
    40. ),
    41. OutlineButton.icon(
    42. onPressed: () {},
    43. icon: Icon(Icons.search),
    44. label: Text('OutlineButton.icon'
    45. )
    46. ),

    image.png