|
@@ -1,9 +1,9 @@
|
|
|
import 'package:flutter/material.dart';
|
|
|
-import 'package:flutter_svg/flutter_svg.dart';
|
|
|
import 'package:fooddeliveryapp/constants.dart';
|
|
|
|
|
|
class AddToCart extends StatelessWidget {
|
|
|
final Function pressButton;
|
|
|
+
|
|
|
const AddToCart({
|
|
|
Key key,
|
|
|
// @required this.product,
|
|
@@ -20,26 +20,6 @@ class AddToCart extends StatelessWidget {
|
|
|
padding: const EdgeInsets.symmetric(vertical: kDefaultPaddin),
|
|
|
child: Row(
|
|
|
children: <Widget>[
|
|
|
- Container(
|
|
|
- margin: EdgeInsets.only(right: kDefaultPaddin),
|
|
|
- height: 50,
|
|
|
- width: 58,
|
|
|
- decoration: BoxDecoration(
|
|
|
- borderRadius: BorderRadius.circular(18),
|
|
|
- border: Border.all(
|
|
|
- // color: product.color,
|
|
|
- color: Colors.red,
|
|
|
- ),
|
|
|
- ),
|
|
|
- child: IconButton(
|
|
|
- icon: SvgPicture.asset(
|
|
|
- "assets/icons/add_to_cart.svg",
|
|
|
- // color: product.color,
|
|
|
- color: Colors.red,
|
|
|
- ),
|
|
|
- onPressed: () {},
|
|
|
- ),
|
|
|
- ),
|
|
|
Expanded(
|
|
|
child: SizedBox(
|
|
|
height: 50,
|