import 'package:flutter/material.dart';
import 'package:selfprivacy/config/brand_colors.dart';
import 'package:selfprivacy/config/text_themes.dart';
import 'package:selfprivacy/ui/pages/setup/initializing.dart';
import 'package:selfprivacy/utils/route_transitions/basic.dart';
import 'package:easy_localization/easy_localization.dart';

class NotReadyCard extends StatelessWidget {
  const NotReadyCard({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      padding: EdgeInsets.symmetric(horizontal: 15, vertical: 10),
      decoration: BoxDecoration(
          borderRadius: BorderRadius.circular(15), color: BrandColors.gray6),
      child: RichText(
        text: TextSpan(
          children: [
            TextSpan(
              text: 'not_ready_card.1'.tr(),
              style: TextStyle(color: BrandColors.white),
            ),
            WidgetSpan(
              child: Padding(
                padding: const EdgeInsets.only(bottom: 0.5),
                child: GestureDetector(
                  onTap: () => Navigator.of(context).push(
                    materialRoute(
                      InitializingPage(),
                    ),
                  ),
                  child: Text(
                    'not_ready_card.2'.tr(),
                    style: body1Style.copyWith(
                      color: Colors.white,
                      fontWeight: FontWeight.bold,
                      decoration: TextDecoration.underline,
                      // height: 1.1,
                    ),
                  ),
                ),
              ),
            ),
            TextSpan(
              text: 'not_ready_card.3'.tr(),
              style: TextStyle(color: BrandColors.white),
            ),
          ],
        ),
      ),
    );
  }
}
