mirrored_repositories/visit_nepal/lib
import 'package:flutter/material.dart';

class ShowMore extends StatelessWidget {
  final String text;
  final VoidCallback onTap;

  ShowMore({required this.text, required this.onTap});
  @override
  Widget build(BuildContext context) {
    return Row(
      mainAxisAlignment: MainAxisAlignment.spaceBetween,
      children: <Widget>[
        Padding(
          padding: const EdgeInsets.all(8.0),
          child: Text(
            text,
            style: Theme.of(context).textTheme.bodyText2,
          ),
        ),
        TextButton(
          child: Text('See all'),
          onPressed: onTap,
        )
      ],
    );
  }
}
