Prepare Google Play release with age-gated ads and store assets
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import '../services/ad_audience.dart';
|
||||
import 'translation.dart';
|
||||
|
||||
Future<AdAudience?> chooseAdAgeGroup(BuildContext context) =>
|
||||
showDialog<AdAudience>(
|
||||
context: context,
|
||||
builder: (context) => SimpleDialog(
|
||||
title: const CopyText('Choose your age group'),
|
||||
children: [
|
||||
const Padding(
|
||||
padding: EdgeInsets.fromLTRB(24, 0, 24, 16),
|
||||
child: CopyText(
|
||||
'We use this only to choose advertising settings. Under 13 and Prefer not to say play without ads. Your choice stays on this device.',
|
||||
),
|
||||
),
|
||||
for (final option in const [
|
||||
(AdAudience.under13, 'Under 13'),
|
||||
(AdAudience.teen, '13–17'),
|
||||
(AdAudience.adult, '18 and over'),
|
||||
(AdAudience.unknown, 'Prefer not to say'),
|
||||
])
|
||||
SimpleDialogOption(
|
||||
onPressed: () => Navigator.pop(context, option.$1),
|
||||
child: CopyText(
|
||||
option.$2,
|
||||
style: const TextStyle(fontFamily: 'LumenText', fontSize: 18),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
+6
-4
@@ -3,7 +3,6 @@ import '../services/browser_assets.dart';
|
||||
import 'dart:math' as math;
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
|
||||
import 'translation.dart';
|
||||
|
||||
@@ -16,9 +15,12 @@ const ink = Color(0xff36413c),
|
||||
amber = Color(0xffe0b568);
|
||||
TextStyle hand(double size, {Color color = ink}) => TextStyle(
|
||||
fontFamily: 'MaraHand',
|
||||
fontFamilyFallback: kIsWeb
|
||||
? const ['LumenText', 'LumenSymbols', 'LumenSymbols2', 'LumenMath']
|
||||
: null,
|
||||
fontFamilyFallback: const [
|
||||
'LumenText',
|
||||
'LumenSymbols',
|
||||
'LumenSymbols2',
|
||||
'LumenMath',
|
||||
],
|
||||
fontSize: size,
|
||||
height: 1.30,
|
||||
color: color,
|
||||
|
||||
Reference in New Issue
Block a user