mirror of
https://github.com/wgh136/pixes.git
synced 2025-09-27 04:57:23 +00:00
font
This commit is contained in:
BIN
assets/SourceHanSansSC-Regular.otf
Normal file
BIN
assets/SourceHanSansSC-Regular.otf
Normal file
Binary file not shown.
@@ -53,6 +53,7 @@ class MyApp extends StatelessWidget {
|
|||||||
title: 'pixes',
|
title: 'pixes',
|
||||||
theme: FluentThemeData(
|
theme: FluentThemeData(
|
||||||
brightness: Brightness.light,
|
brightness: Brightness.light,
|
||||||
|
fontFamily: App.isWindows ? 'font' : null,
|
||||||
accentColor: AccentColor.swatch({
|
accentColor: AccentColor.swatch({
|
||||||
'darkest': SystemTheme.accentColor.darkest,
|
'darkest': SystemTheme.accentColor.darkest,
|
||||||
'darker': SystemTheme.accentColor.darker,
|
'darker': SystemTheme.accentColor.darker,
|
||||||
@@ -64,6 +65,7 @@ class MyApp extends StatelessWidget {
|
|||||||
})),
|
})),
|
||||||
darkTheme: FluentThemeData(
|
darkTheme: FluentThemeData(
|
||||||
brightness: Brightness.dark,
|
brightness: Brightness.dark,
|
||||||
|
fontFamily: App.isWindows ? 'font' : null,
|
||||||
accentColor: AccentColor.swatch({
|
accentColor: AccentColor.swatch({
|
||||||
'darkest': SystemTheme.accentColor.darkest,
|
'darkest': SystemTheme.accentColor.darkest,
|
||||||
'darker': SystemTheme.accentColor.darker,
|
'darker': SystemTheme.accentColor.darker,
|
||||||
|
@@ -23,7 +23,9 @@ class _LoginPageState extends State<LoginPage> {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
if (!waitingForAuth) {
|
if(isLogging) {
|
||||||
|
return buildLoading(context);
|
||||||
|
} else if (!waitingForAuth) {
|
||||||
return buildLogin(context);
|
return buildLogin(context);
|
||||||
} else {
|
} else {
|
||||||
return buildWaiting(context);
|
return buildWaiting(context);
|
||||||
|
@@ -102,3 +102,9 @@ flutter:
|
|||||||
#
|
#
|
||||||
# For details regarding fonts from package dependencies,
|
# For details regarding fonts from package dependencies,
|
||||||
# see https://flutter.dev/custom-fonts/#from-packages
|
# see https://flutter.dev/custom-fonts/#from-packages
|
||||||
|
|
||||||
|
# font used for building windows application
|
||||||
|
fonts:
|
||||||
|
- family: font
|
||||||
|
fonts:
|
||||||
|
- asset: assets/SourceHanSansSC-Regular.otf
|
Reference in New Issue
Block a user