Add modular story library and shared-progress translations
This commit is contained in:
+6
-3
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user