mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-08-24 14:01:51 +00:00
57 lines
1.9 KiB
Dart
57 lines
1.9 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:selfprivacy/config/brand_colors.dart';
|
|
import 'package:selfprivacy/config/text_themes.dart';
|
|
import 'package:selfprivacy/ui/pages/initializing/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: Theme.of(context).brightness == Brightness.dark
|
|
? Colors.black
|
|
: BrandColors.white,
|
|
fontWeight: FontWeight.bold,
|
|
decoration: TextDecoration.underline,
|
|
// height: 1.1,
|
|
),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
TextSpan(
|
|
text: 'not_ready_card.3'.tr(),
|
|
style: TextStyle(color: BrandColors.white),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|