Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | None | 0 0
  1. Widget _toolBar(String headerText){
  2.  
  3. return Container(
  4. decoration: BoxDecoration(
  5. color: MyColors.greenHeader,
  6. borderRadius: new BorderRadius.only(
  7. bottomLeft: const Radius.circular(15.0),
  8. bottomRight: const Radius.circular(15.0))
  9. ),
  10. child:Center(child: Stack(
  11. children: <Widget>[
  12.  
  13. Row(
  14. mainAxisAlignment: MainAxisAlignment.start,
  15. mainAxisSize: MainAxisSize.max,
  16. children: <Widget>[
  17. Expanded(
  18. flex: 1,
  19. child:Text(headerText,
  20. textAlign: TextAlign.center,
  21. style: TextStyle(
  22. color: Colors.white,
  23. fontSize: 18.0,
  24. )
  25. ),),
  26. ],),
  27.  
  28. Row(
  29. mainAxisAlignment: MainAxisAlignment.start,
  30. mainAxisSize: MainAxisSize.max,
  31. children: <Widget>[
  32. Flexible(
  33. flex: 1,
  34. child:IconButton(
  35. icon: new Icon(Icons.arrow_back_ios),
  36. color: Colors.white,
  37. onPressed: (){},
  38. )
  39. ),
  40. ],),
  41.  
  42. ],
  43. ),)
  44. );
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement