import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart';
import 'package:mc_common_app/extensions/int_extensions.dart';
import 'package:mc_common_app/extensions/string_extensions.dart';
import 'package:mc_common_app/theme/colors.dart';
import 'package:mc_common_app/widgets/extensions/extensions_widget.dart';

class DropDownText extends StatelessWidget {
  String title;

  DropDownText(this.title, {super.key});

  @override
  Widget build(BuildContext context) {
    return Row(
      crossAxisAlignment: CrossAxisAlignment.center,
      mainAxisAlignment: MainAxisAlignment.spaceBetween,
      children: [
        title.toText(
          fontSize: 16,
          letterSpacing: -0.64,
        ),
        const Icon(Icons.keyboard_arrow_down_outlined),
      ],
    ).toContainer(
      isEnabledBorder: true,
      borderRadius: 0,
      borderColor: MyColors.primaryColor,
      borderWidget: 2,
    );
  }
}
