mirrored_repositories/Booking-app/lib

import 'package:booking_app/constants.dart';
import 'package:flutter/material.dart';

class DetailsWidget extends StatelessWidget {
  const DetailsWidget({
    Key key,
    @required this.data, this.title,
  }) : super(key: key);

  final String data;
  final String title;

  @override
  Widget build(BuildContext context) {
    return Padding(
      padding: const EdgeInsets.all(12.0),
      child: Column(
        crossAxisAlignment: CrossAxisAlignment.center,
        children: <Widget>[
          Text(
            title,
            style: kCardTitle.copyWith(
              color: kGoldColor,
            ),
          ),
          Text(
            data,
            textAlign: TextAlign.center,
            style: TextStyle(
              fontFamily: 'Sans',
              fontWeight: FontWeight.bold,
              fontSize: 20.0,
            ),
          ),
        ],
      ),
    );
  }
}