mirror of
https://github.com/wgh136/pixes.git
synced 2025-09-27 12:57:24 +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',
|
||||
theme: FluentThemeData(
|
||||
brightness: Brightness.light,
|
||||
fontFamily: App.isWindows ? 'font' : null,
|
||||
accentColor: AccentColor.swatch({
|
||||
'darkest': SystemTheme.accentColor.darkest,
|
||||
'darker': SystemTheme.accentColor.darker,
|
||||
@@ -64,6 +65,7 @@ class MyApp extends StatelessWidget {
|
||||
})),
|
||||
darkTheme: FluentThemeData(
|
||||
brightness: Brightness.dark,
|
||||
fontFamily: App.isWindows ? 'font' : null,
|
||||
accentColor: AccentColor.swatch({
|
||||
'darkest': SystemTheme.accentColor.darkest,
|
||||
'darker': SystemTheme.accentColor.darker,
|
||||
|
@@ -23,7 +23,9 @@ class _LoginPageState extends State<LoginPage> {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
if (!waitingForAuth) {
|
||||
if(isLogging) {
|
||||
return buildLoading(context);
|
||||
} else if (!waitingForAuth) {
|
||||
return buildLogin(context);
|
||||
} else {
|
||||
return buildWaiting(context);
|
||||
|
@@ -102,3 +102,9 @@ flutter:
|
||||
#
|
||||
# For details regarding fonts from package dependencies,
|
||||
# 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