Advertisement
Guest User

Untitled

a guest
Nov 20th, 2019
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 0.66 KB | None | 0 0
  1. class MyBackButton extends StatelessWidget {
  2.   final ValueGetter clicked;
  3.  
  4.   const MyBackButton({@required this.clicked});
  5.  
  6.   @override
  7.   Widget build(BuildContext context) {
  8.     return GestureDetector(
  9.         onTapUp: (_) {
  10.           this.clicked();
  11.         },
  12.         child: Row(children: [
  13.           SvgPicture.asset("images/back.svg"),
  14.           SizedBox(
  15.             width: 12,
  16.           ),
  17.           Text(
  18.             AppLocalizations.of(context).translate("back"),
  19.             style: TextStyle(
  20.                 color: HexColor("#0076ED"),
  21.                 fontSize: 14,
  22.                 fontWeight: FontWeight.w700),
  23.           )
  24.         ]));
  25.   }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement