Untitled

mail@pastecode.io avatar
unknown
dart
a year ago
1.7 kB
1
Indexable
Never
import 'package:centro/app/utilities/constants/app_colors.dart';
import 'package:centro/app/utilities/ui/widgets/centro_button.dart';
import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart';
import 'package:get/get.dart';

class TweetSharedSuccessfullyDialog extends StatelessWidget {
  const TweetSharedSuccessfullyDialog({super.key});

  @override
  Widget build(BuildContext context) {
    return SimpleDialog(
      shape: const RoundedRectangleBorder(
        borderRadius: BorderRadius.all(
          Radius.circular(20),
        ),
      ),
      children: [
        Column(
          crossAxisAlignment: CrossAxisAlignment.center,
          children: [
            const SizedBox(
              height: 12,
            ),
            Text(
              'shared successfully'.tr,
              style: Get.textTheme.headline2!
                  .copyWith(color: AppColors.lightGreen, fontSize: 24),
            ),
            SizedBox(
              height: Get.width * 0.15,
            ),
            SvgPicture.asset('assets/icons/success.svg'),
            const SizedBox(
              height: 16,
            ),
            Text(
              'tweet shared successfully'.tr,
              style: Get.textTheme.headline5
                  ?.copyWith(fontSize: 14, color: AppColors.grey),
            ),
            SizedBox(
              height: Get.width * 0.15,
            ),
            CentroButton(
              isIconed: false,
              text: 'discover tweet'.tr,
              onPressed: () {
                Get.back();
              },
              width: 200,
            ),
          ],
        ).paddingAll(8),
      ],
    );
  }
}