Add modular story library and shared-progress translations

This commit is contained in:
Hadrian Burkhardt
2026-11-03 17:15:15 +01:00
parent 5b9a76fb53
commit d45cd0698a
30 changed files with 2694 additions and 495 deletions
+6 -3
View File
@@ -1,6 +1,9 @@
import 'dart:math' as math;
import 'package:flutter/material.dart';
import 'translation.dart';
import 'package:flutter/gestures.dart';
const ink = Color(0xff36413c),
@@ -16,7 +19,7 @@ TextStyle hand(double size, {Color color = ink}) => TextStyle(
);
Widget writing(String value, {double size = 23, Color color = ink}) => Padding(
padding: const EdgeInsets.symmetric(vertical: 5),
child: Text(value, style: hand(size, color: color)),
child: CopyText(value, style: hand(size, color: color)),
);
class InkButton extends StatelessWidget {
@@ -49,7 +52,7 @@ class InkButton extends StatelessWidget {
padding: const EdgeInsets.symmetric(horizontal: 5, vertical: 8),
shape: const RoundedRectangleBorder(),
),
child: Text(label, textAlign: TextAlign.center),
child: CopyText(label, textAlign: TextAlign.center),
),
),
);
@@ -241,7 +244,7 @@ class Cover extends StatelessWidget {
child: Center(
child: Transform.rotate(
angle: -.044,
child: Text(
child: CopyText(
'Mara’s\nisland notebook',
textAlign: TextAlign.center,
style: hand(28),