Line data Source code
1 : import 'package:amadeus_proto/constants.dart';
2 : import 'package:flutter/material.dart';
3 : import 'package:flutter_svg/svg.dart';
4 :
5 : class PreviousButton extends StatelessWidget {
6 48 : const PreviousButton({super.key});
7 :
8 0 : @override
9 : Widget build(BuildContext context) {
10 0 : return Container(
11 : margin: const EdgeInsets.all(10),
12 0 : decoration: BoxDecoration(
13 0 : borderRadius: BorderRadius.circular(50),
14 : border: const Border(
15 : top: BorderSide(color: Color(0xFFDFDFDF)),
16 : left: BorderSide(color: Color(0xFFDFDFDF)),
17 : right: BorderSide(color: Color(0xFFDFDFDF)),
18 : bottom: BorderSide(color: Color(0xFFDFDFDF)),
19 : ),
20 : color: Colors.white),
21 0 : child: IconButton(
22 0 : icon: SvgPicture.asset("assets/FigmaDesign/Asset/SVG/ArrowLeft.svg",
23 : fit: BoxFit.fill),
24 : iconSize: closeIconSize,
25 0 : color: Theme.of(context).colorScheme.primary,
26 0 : onPressed: () => {Navigator.pop(context)},
27 : ),
28 : );
29 : }
30 : }
|