Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class MyBackButton extends StatelessWidget {
- final ValueGetter clicked;
- const MyBackButton({@required this.clicked});
- @override
- Widget build(BuildContext context) {
- return GestureDetector(
- onTapUp: (_) {
- this.clicked();
- },
- child: Row(children: [
- SvgPicture.asset("images/back.svg"),
- SizedBox(
- width: 12,
- ),
- Text(
- AppLocalizations.of(context).translate("back"),
- style: TextStyle(
- color: HexColor("#0076ED"),
- fontSize: 14,
- fontWeight: FontWeight.w700),
- )
- ]));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement