Compare commits
3 Commits
dfdf7b23c8
...
31d50bfb1f
Author | SHA1 | Date | |
---|---|---|---|
31d50bfb1f | |||
ca8ad12d93 | |||
f799900450 |
BIN
assets/fonts/Comfortaa-Bold.ttf
Executable file
BIN
assets/fonts/Comfortaa-Bold.ttf
Executable file
Binary file not shown.
BIN
assets/fonts/Comfortaa-Regular.ttf
Executable file
BIN
assets/fonts/Comfortaa-Regular.ttf
Executable file
Binary file not shown.
Binary file not shown.
BIN
assets/fonts/NotoSansHK-Bold.ttf
Executable file
BIN
assets/fonts/NotoSansHK-Bold.ttf
Executable file
Binary file not shown.
BIN
assets/fonts/NotoSansHK-Regular.ttf
Executable file
BIN
assets/fonts/NotoSansHK-Regular.ttf
Executable file
Binary file not shown.
BIN
assets/fonts/NotoSansJP-Bold.ttf
Executable file
BIN
assets/fonts/NotoSansJP-Bold.ttf
Executable file
Binary file not shown.
BIN
assets/fonts/NotoSansJP-Regular.ttf
Executable file
BIN
assets/fonts/NotoSansJP-Regular.ttf
Executable file
Binary file not shown.
BIN
assets/fonts/NotoSansSC-Bold.ttf
Executable file
BIN
assets/fonts/NotoSansSC-Bold.ttf
Executable file
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -38,9 +38,18 @@ abstract class SolianTheme {
|
||||
brightness: brightness,
|
||||
seedColor: seedColor ?? const Color.fromRGBO(154, 98, 91, 1),
|
||||
),
|
||||
fontFamily: 'Quicksand',
|
||||
fontFamilyFallback: const ['NotoSansSC', 'NotoSansHK'],
|
||||
typography: Typography.material2021(),
|
||||
fontFamily: 'Comfortaa',
|
||||
fontFamilyFallback: const [
|
||||
'NotoSansSC',
|
||||
'NotoSansHK',
|
||||
'NotoSansJP',
|
||||
'NotoSansEmoji'
|
||||
],
|
||||
typography: Typography.material2021(
|
||||
colorScheme: brightness == Brightness.light
|
||||
? const ColorScheme.light()
|
||||
: const ColorScheme.dark(),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -45,6 +45,14 @@ class _AttachmentListFullScreenState extends State<AttachmentListFullScreen> {
|
||||
return '${(bytes / math.pow(k, i)).toStringAsFixed(dm)} ${sizes[i]}';
|
||||
}
|
||||
|
||||
double _getRatio() {
|
||||
final value = widget.attachment.metadata?['ratio'];
|
||||
if (value == null) return 1;
|
||||
if (value is int) return value.toDouble();
|
||||
if (value is double) return value;
|
||||
return 1;
|
||||
}
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
@ -164,7 +172,7 @@ class _AttachmentListFullScreenState extends State<AttachmentListFullScreen> {
|
||||
),
|
||||
if (widget.attachment.metadata?['ratio'] != null)
|
||||
Text(
|
||||
'${(widget.attachment.metadata?['ratio'] as double).toPrecision(2)}',
|
||||
'${_getRatio().toPrecision(2)}',
|
||||
style: TextStyle(
|
||||
fontSize: 12,
|
||||
color: _unFocusColor,
|
||||
|
22
pubspec.yaml
22
pubspec.yaml
@ -81,15 +81,29 @@ flutter:
|
||||
- assets/logo.png
|
||||
|
||||
fonts:
|
||||
- family: NotoSansEmoji
|
||||
fonts:
|
||||
- asset: assets/fonts/NotoColorEmoji-Regular.ttf
|
||||
- family: NotoSansSC
|
||||
fonts:
|
||||
- asset: assets/fonts/NotoSansSC-VariableFont_wght.ttf
|
||||
- asset: assets/fonts/NotoSansSC-Regular.ttf
|
||||
- asset: assets/fonts/NotoSansSC-Bold.ttf
|
||||
weight: 700
|
||||
- family: NotoSansHK
|
||||
fonts:
|
||||
- asset: assets/fonts/NotoSansHK-VariableFont_wght.ttf
|
||||
- family: Quicksand
|
||||
- asset: assets/fonts/NotoSansHK-Regular.ttf
|
||||
- asset: assets/fonts/NotoSansHK-Bold.ttf
|
||||
weight: 700
|
||||
- family: NotoSansJP
|
||||
fonts:
|
||||
- asset: assets/fonts/Quicksand-VariableFont_wght.ttf
|
||||
- asset: assets/fonts/NotoSansJP-Regular.ttf
|
||||
- asset: assets/fonts/NotoSansJP-Bold.ttf
|
||||
weight: 700
|
||||
- family: Comfortaa
|
||||
fonts:
|
||||
- asset: assets/fonts/Comfortaa-Regular.ttf
|
||||
- asset: assets/fonts/Comfortaa-Bold.ttf
|
||||
weight: 700
|
||||
|
||||
flutter_launcher_icons:
|
||||
android:
|
||||
|
@ -15,7 +15,8 @@
|
||||
This is a placeholder for base href that will be replaced by the value of
|
||||
the `--base-href` argument provided to `flutter build`.
|
||||
-->
|
||||
<base href="$FLUTTER_BASE_HREF">
|
||||
<!-- <base href="$FLUTTER_BASE_HREF"> -->
|
||||
<base href="/" />
|
||||
|
||||
<meta charset="UTF-8">
|
||||
<meta content="IE=Edge" http-equiv="X-UA-Compatible">
|
||||
|
Loading…
x
Reference in New Issue
Block a user