Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.06 KB | None | 0 0
  1. SafeArea(
  2. child: Column(
  3. children: <Widget>[
  4. // SizedBox(height: 30,),
  5. Row(
  6. mainAxisSize: MainAxisSize.max,
  7. mainAxisAlignment: MainAxisAlignment.spaceBetween,
  8. children: <Widget>[
  9. Hero(
  10. tag: 'topBarBtn',
  11. child: Card(
  12. elevation: 10,
  13. shape: kBackButtonShape,
  14. child: MaterialButton(
  15. height: 50,
  16. minWidth: 50,
  17. elevation: 10,
  18. shape: kBackButtonShape,
  19. onPressed: onPressed,
  20. child: child,
  21. ),
  22. ),
  23. ),
  24. // SizedBox(
  25. // width: 50,
  26. // ),
  27. Hero(
  28. tag: 'title',
  29. transitionOnUserGestures: true,
  30. child: Card(
  31. elevation: 10,
  32. shape: RoundedRectangleBorder(
  33. borderRadius: BorderRadius.only(
  34. bottomLeft: Radius.circular(30),
  35. ),
  36. ),
  37. child: InkWell(
  38. onTap: onTitleTapped,
  39. child: Container(
  40. width: MediaQuery.of(context).size.width / 1.5,
  41. height: 50,
  42. child: Align(
  43. alignment: Alignment.centerLeft,
  44. child: Padding(
  45. padding: const EdgeInsets.only(left: 30),
  46. child: Text(
  47. title,
  48. style: TextStyle(
  49. fontWeight: FontWeight.bold,
  50. fontSize: 25,
  51. // color: Colors.black54,
  52. ),
  53. ),
  54. ),
  55. ),
  56. ),
  57. ),
  58. ),
  59. )
  60. ],
  61. ),
  62. ],
  63. ),
  64. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement