mirrored_repositories/flutterzon_provider/lib/features/order_details
import 'package:flutter/material.dart';

class StandardDeliveryContainer extends StatelessWidget {
  const StandardDeliveryContainer({
    super.key,
    required this.containerDecoration,
    required this.textSyle,
  });

  final BoxDecoration containerDecoration;
  final TextStyle textSyle;

  @override
  Widget build(BuildContext context) {
    return Container(
      width: MediaQuery.sizeOf(context).width,
      padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 12),
      alignment: Alignment.centerLeft,
      decoration: containerDecoration.copyWith(
        border: const Border(
          left: BorderSide(color: Colors.black12, width: 1),
          right: BorderSide(color: Colors.black12, width: 1),
          top: BorderSide(color: Colors.black12, width: 1),
          // bottom: BorderSide(color: Colors.black12, width: 0)
        ),
        borderRadius: const BorderRadius.only(
            topLeft: Radius.circular(5), topRight: Radius.circular(5)),
      ),
      child: Text(
        'Standard Delivery',
        style: textSyle,
        textAlign: TextAlign.justify,
      ),
    );
  }
}
