simulator_screenshot_B4D532CE-F885-448B-AFC5-08D0BFB0864A.png

    1. Scaffold(
    2. // appBar: AppBar(
    3. // // title: ,
    4. // ),
    5. body: Container(
    6. child: Column(
    7. children: <Widget>[
    8. Container(
    9. height: 105,
    10. color: Colors.green[200],
    11. child: Stack(
    12. fit: StackFit.loose,
    13. children: <Widget>[
    14. // Container(
    15. // child: Text('4444'),
    16. // ),
    17. Positioned(
    18. top: 49,
    19. left: -5,
    20. child: IconButton(
    21. onPressed: (){
    22. AppNavigator.pop(context);
    23. },
    24. icon: Icon(Icons.chevron_left, color: Colors.red, size: 38,),
    25. ),
    26. ),
    27. Positioned(
    28. // top: 49,
    29. left: 50,
    30. right: 50,
    31. child: Container(
    32. padding: EdgeInsets.only(top: 45),
    33. height: 105,
    34. width: width * 100,
    35. color: Colors.blue[600],
    36. alignment: Alignment.center,
    37. child: TabBar(
    38. isScrollable: true,
    39. controller: _controller,
    40. indicatorSize: TabBarIndicatorSize.label,
    41. indicator: UnderlineTabIndicator(
    42. borderSide: BorderSide(color: Color(0xffFF3700), width: 2, ),
    43. insets: EdgeInsets.only( top: 1, left: 1, right :1),
    44. ),
    45. tabs: <Widget>[
    46. Tab(
    47. text: "精英版集群",
    48. ),
    49. Tab(
    50. text: "超算版集群",
    51. )
    52. ],
    53. ),
    54. ),
    55. )
    56. ],
    57. ),
    58. )
    59. ],
    60. ),
    61. ),
    62. );