mirrored_repositories/Flutter-Travel-App/travel_app/lib
import 'package:flutter/material.dart';

import 'reuseable_text.dart';

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

  final String text;

  @override
  Widget build(BuildContext context) {
     var size = MediaQuery.of(context).size;
    return Padding(
      padding: EdgeInsets.only(top: size.height * 0.015),
      child: Row(
        mainAxisAlignment: MainAxisAlignment.spaceBetween,
        children:   [
          AppText(
            text: text,
            size: 19,
            color: Colors.black,
            fontWeight: FontWeight.w500,
          ),
          const AppText(
            text: "See All",
            size: 14,
            color: Colors.deepPurpleAccent,
            fontWeight: FontWeight.w500,
          ),
        ],
      ),
    );
  }
}