This commit is contained in:
Hillel Coren 2019-11-13 17:51:38 +02:00
parent b7e36b1bef
commit ecb456e4f7
4 changed files with 11 additions and 3 deletions

View File

@ -171,7 +171,7 @@ const dynamic kMockLogin = '''
"endless_reminder_frequency_id": "0",
"client_online_payment_notification": true,
"client_manual_payment_notification": true,
"name": "User",
"name": "Demo Account",
"company_logo": "",
"website": "",
"address1": "",

View File

@ -283,8 +283,9 @@ class InvoiceNinjaAppState extends State<InvoiceNinjaApp> {
brightness: Brightness.dark,
accentColor: accentColor,
textSelectionHandleColor: accentColor,
fontFamily: 'Roboto',
)
: ThemeData().copyWith(
: ThemeData(fontFamily: 'Roboto').copyWith(
accentColor: accentColor,
primaryColor: const Color(0xFF117cc1),
primaryColorLight: const Color(0xFF5dabf4),

View File

@ -1,3 +1,4 @@
import 'package:invoiceninja_flutter/.env.dart';
import 'package:flutter/material.dart';
import 'package:invoiceninja_flutter/data/models/models.dart';
import 'package:invoiceninja_flutter/data/repositories/client_repository.dart';
@ -213,7 +214,7 @@ Middleware<AppState> _loadClient(ClientRepository repository) {
final action = dynamicAction as LoadClient;
final AppState state = store.state;
if (state.isLoading) {
if (state.isLoading || Config.DEMO_MODE) {
next(action);
return;
}

View File

@ -72,6 +72,12 @@ flutter:
# For details regarding adding assets from package dependencies, see
# https://flutter.io/assets-and-images/#from-packages
fonts:
- family: Roboto
fonts:
- asset: web/assets/fonts/Roboto-Regular.ttf
# To add custom fonts to your application, add a fonts section here,
# in this "flutter" section. Each entry in this list should have a
# "family" key with the font family name, and a "fonts" key with a