Merge pull request #369 from pangeachat/age-page-readable

Age page readable
pull/1187/head
ggurdin 1 year ago committed by GitHub
commit febf435b9d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1,3 +1,4 @@
import 'package:fluffychat/config/app_config.dart';
import 'package:fluffychat/pangea/pages/p_user_age/p_user_age.dart'; import 'package:fluffychat/pangea/pages/p_user_age/p_user_age.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/l10n.dart'; import 'package:flutter_gen/gen_l10n/l10n.dart';
@ -18,11 +19,15 @@ class PUserAgeView extends StatelessWidget {
children: [ children: [
Container( Container(
margin: const EdgeInsets.only(top: 10), margin: const EdgeInsets.only(top: 10),
padding: const EdgeInsets.all(12), padding: const EdgeInsets.all(15),
child: Text( child: Text(
L10n.of(context)!.yourBirthdayPlease, L10n.of(context)!.yourBirthdayPlease,
textAlign: TextAlign.justify, textAlign: TextAlign.justify,
style: const TextStyle(color: Colors.white), style: const TextStyle(
color: Colors.black,
fontSize: 14,
fontWeight: FontWeight.bold,
),
), ),
), ),
const SizedBox( const SizedBox(
@ -41,23 +46,25 @@ class PUserAgeView extends StatelessWidget {
ListTile( ListTile(
title: Text( title: Text(
L10n.of(context)!.certifyAge(13), L10n.of(context)!.certifyAge(13),
style: const TextStyle(color: Colors.white, fontSize: 14), style: const TextStyle(color: Colors.black, fontSize: 14),
), ),
leading: Radio<int>( leading: Radio<int>(
value: 13, value: 13,
groupValue: controller.selectedAge, groupValue: controller.selectedAge,
onChanged: controller.setSelectedAge, onChanged: controller.setSelectedAge,
activeColor: AppConfig.primaryColor,
), ),
), ),
ListTile( ListTile(
title: Text( title: Text(
L10n.of(context)!.certifyAge(18), L10n.of(context)!.certifyAge(18),
style: const TextStyle(color: Colors.white, fontSize: 14), style: const TextStyle(color: Colors.black, fontSize: 14),
), ),
leading: Radio<int>( leading: Radio<int>(
value: 18, value: 18,
groupValue: controller.selectedAge, groupValue: controller.selectedAge,
onChanged: controller.setSelectedAge, onChanged: controller.setSelectedAge,
activeColor: AppConfig.primaryColor,
), ),
), ),
], ],

Loading…
Cancel
Save