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