mirrored_repositories/Fashion-eCommerce-app/fashion_ecommerce_app/lib
import 'package:flutter/material.dart';

import 'reuseable_text.dart';

class ReuseableRowForCart extends StatelessWidget {
  const ReuseableRowForCart({
    Key? key,
    required this.text,
    required this.price,
  }) : super(key: key);

  final double price;
  final String text;

  @override
  Widget build(BuildContext context) {
    var textTheme = Theme.of(context).textTheme;
    return Padding(
      padding: const EdgeInsets.only(top: 12.0),
      child: Row(
        mainAxisAlignment: MainAxisAlignment.spaceBetween,
        children: [
          Text(text,
              style: textTheme.headline5
                  ?.copyWith(color: Colors.grey, fontSize: 16)),
          ReuseableText(
            price: price,
          )
        ],
      ),
    );
  }
}
